|
Public Types |
| typedef int | Filedesc |
| enum | Domain { IPSuite_AF_UNIX,
IPSuite_AF_INET,
IPSuite_AF_UNDEF
} |
| enum | Type {
IPSuite_SOCK_STREAM,
IPSuite_SOCK_DGRAM,
IPSuite_SOCK_RAW,
IPSuite_SOCK_SEQPACKET,
IPSuite_SOCK_UNDEF
} |
| enum | Protocol {
UDP,
TCP,
ICMP,
IGMP,
ROUTE,
PROTO_UNDEF
} |
| enum | ConnectionState { CONN_LISTEN,
CONN_HALFESTAB,
CONN_ESTAB,
CONN_UNDEF
} |
Public Member Functions |
| | Socket (const Socket &socket) |
| | Socket () |
| | Socket (const char *name) |
| | Socket (Socket::Domain domain, Socket::Type type, Socket::Protocol proto) |
| virtual | ~Socket () |
| virtual const char * | className () const |
| virtual cObject * | dup () const |
| virtual void | info (char *buf) |
| virtual void | writeContents (std::ostream &os) |
| Socket & | operator= (const Socket &socket) |
| Type | type () const |
| Protocol | protocol () const |
| PCB * | pcb () const |
| void | setIPSuite_SO_ACCEPTCONN (bool val=true) |
| void | setIPSuite_SO_BROADCAST (bool val=true) |
| void | setIPSuite_SO_DEBUG (bool val=true) |
| void | setIPSuite_SO_DONTROUTE (bool val=true) |
| void | setIPSuite_SO_KEEPALIVE (bool val=true) |
| void | setIPSuite_SO_OOBINLINE (bool val=true) |
| void | setIPSuite_SO_REUSEADDR (bool val=true) |
| void | setIPSuite_SO_REUSEPORT (bool val=true) |
| void | setIPSuite_SO_USELOOPBACK (bool val=true) |
| bool | IPSuite_SO_ACCEPTCONN () |
| bool | IPSuite_SO_BROADCAST () |
| bool | IPSuite_SO_DEBUG () |
| bool | IPSuite_SO_DONTROUTE () |
| bool | IPSuite_SO_KEEPALIVE () |
| bool | IPSuite_SO_OOBINLINE () |
| bool | IPSuite_SO_REUSEADDR () |
| bool | IPSuite_SO_REUSEPORT () |
| bool | IPSuite_SO_USELOOPBACK () |
| void | setSS_CANTRCVMORE (bool val=true) |
| void | setSS_CANTSENDMORE (bool val=true) |
| void | setSS_ISCONFIRMING (bool val=true) |
| void | setSS_ISCONNECTED (bool val=true) |
| void | setSS_ISCONNECTING (bool val=true) |
| void | setSS_ISDISCONNECTING (bool val=true) |
| void | setSS_NOFDREF (bool val=true) |
| void | setSS_PRIV (bool val=true) |
| void | setSS_RCVATMARK (bool val=true) |
| bool | SS_CANTRCVMORE () |
| bool | SS_CANTSENDMORE () |
| bool | SS_ISCONFIRMING () |
| bool | SS_ISCONNECTED () |
| bool | SS_ISCONNECTING () |
| bool | SS_ISDISCONNECTING () |
| bool | SS_NOFDREF () |
| bool | SS_PRIV () |
| bool | SS_RCVATMARK () |
| void | setConnState (enum ConnectionState state) |
| ConnectionState | connState () const |
| void | setPendingAccept (bool val=true) |
| bool | pendingAccept () |
| bool | isFullySpecified () |
Static Public Attributes |
| static const char *const | domain_string [] |
| static const char *const | type_string [] |
| static const char *const | protocol_string [] |
| static const char *const | connstate_string [] |
| static const Filedesc | FILEDESC_UNDEF = -1 |
Private Member Functions |
| void | _initOptions () |
| void | _initState () |
| void | _init () |
Private Attributes |
| Socket::Domain | _domain |
| Socket::Type | _type |
| Socket::Protocol | _proto |
| Socket::Options | _options |
| Socket::State | _state |
| Socket::ConnectionState | _connstate |
| bool | _pending_accept |
| PCB * | _pcb |
| cQueue | _sockqueue |
Classes |
| struct | Options |
| struct | State |