|
| enum | proto { tcpip
, udpip
, unset
} |
| |
|
|
uint64_t | sentBytes () const |
| |
|
| SocketDevice (proto p, const std::string &la, int lp, const std::string &ra, int rp) |
| |
|
| SocketDevice (proto p, int _existing_socket) |
| |
|
std::string | getDeviceAddress () const |
| |
|
std::string | getError () const |
| |
|
bool | hasIncomingData () const |
| |
|
bool | isInitialized () |
| |
|
bool | initialize () |
| |
|
void | shutdown () |
| |
|
bool | canRead () const |
| |
|
bool | canWrite () const |
| |
|
bool | setTimeout (int sec, int usec) |
| |
|
int | getProto () |
| |
|
bool | setRemoteIP (const std::string &ra) |
| |
|
bool | setRemotePort (int rp) |
| |
|
std::string | getLocalIP () const |
| |
|
std::string | getRemoteIP () const |
| |
|
int | getLocalPort () const |
| |
|
int | getRemotePort () const |
| |
|
std::unique_ptr< SocketDevice > | accept () |
| |
|
bool | bind () |
| |
|
bool | listen () |
| |
|
bool | connect () |
| |
|
void | setTcpNodelay (bool s) |
| |
|
bool | setReuseAddr () |
| |
|
bool | setBroadcast () |
| |
|
void | setSoLinger (int timeout) |
| |
|
template<typename T> |
| bool | readData (T &data) |
| |
|
bool | readString (std::string &string) |
| |
|
bool | readData (void *data, int size) |
| |
|
template<typename T> |
| bool | writeData (const T &data) |
| |
|
bool | writeString (const std::string &string) |
| |
|
bool | writeData (const void *data, int size) |
| |
|
void | joinMulticastGroup () |
| |
|
bool | setMulticastLoopback (bool loopback_enabled) |
| |
|
bool | setMulticastTTL (int multicast_ttl) |
| |
|
int | incomingDataSize () const |
| |
|
bool | waitIncomingData (int64_t usecs) const |
| |
|
void | setDelayConnect (bool d) |
| |
|
bool | getDelayConnect () const |
| |
|
bool | setSocketReceiveBufferSize (int desired_socket_size) |
| |
|
bool | setSocketTransmitBufferSize (int desired_socket_size) |
| |
|
bool | isLocalPortValid () const |
| |
|
bool | isRemotePortValid () const |
| |
|
int | getFd () const |
| |
|
|
static std::string | resolveHostname (const std::string &hostname) |
| |
The documentation for this class was generated from the following files: