15.04.2014 - Version 0.3.8_beta, last version of 0.3.8 branch. Too much added and fixed...
This commit is contained in:
12
piethernet.h
12
piethernet.h
@@ -37,7 +37,7 @@ public:
|
||||
PIEthernet();
|
||||
|
||||
//! \brief Type of %PIEthernet
|
||||
enum Type {
|
||||
enum PIP_EXPORT Type {
|
||||
UDP /** UDP - User Datagram Protocol */ ,
|
||||
TCP_Client /** TCP client - allow connection to TCP server */ ,
|
||||
TCP_Server /** TCP server - receive connections from TCP clients */ ,
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
};
|
||||
|
||||
//! \brief Parameters of %PIEthernet
|
||||
enum Parameters {
|
||||
enum PIP_EXPORT Parameters {
|
||||
ReuseAddress /** Rebind address if there is already binded */ = 0x1,
|
||||
Broadcast /** Broadcast send */ = 0x2
|
||||
};
|
||||
@@ -182,7 +182,7 @@ public:
|
||||
|
||||
|
||||
//! Flags of network interface
|
||||
enum InterfaceFlag {
|
||||
enum PIP_EXPORT InterfaceFlag {
|
||||
ifActive /** Is active */ = 0x1,
|
||||
ifRunning /** Is running */ = 0x2,
|
||||
ifBroadcast /** Support broadcast */ = 0x4,
|
||||
@@ -196,7 +196,7 @@ public:
|
||||
|
||||
|
||||
//! Network interface descriptor
|
||||
struct Interface {
|
||||
struct PIP_EXPORT Interface {
|
||||
|
||||
//! System index
|
||||
int index;
|
||||
@@ -243,7 +243,7 @@ public:
|
||||
|
||||
|
||||
//! Array of \a Interface with some features
|
||||
class InterfaceList: public PIVector<PIEthernet::Interface> {
|
||||
class PIP_EXPORT InterfaceList: public PIVector<PIEthernet::Interface> {
|
||||
public:
|
||||
InterfaceList(): PIVector<PIEthernet::Interface>() {}
|
||||
|
||||
@@ -323,7 +323,7 @@ protected:
|
||||
|
||||
|
||||
int sock, sock_s, port_, port_s, port_c, wrote;
|
||||
bool connected_;
|
||||
bool connected_, connecting_;
|
||||
sockaddr_in addr_, saddr_;
|
||||
PIString ip_, ip_s, ip_c;
|
||||
PIThread server_thread_;
|
||||
|
||||
Reference in New Issue
Block a user