#include <socket.h>
Public Types | |
enum | { DEFAULT_SOCKET_TIMEOUT = 10000 } |
enum | socket_direction_mask { SOCKET_DIR_RD = 0x1, SOCKET_DIR_WR = 0x2, SOCKET_DIR_BOTH = (SOCKET_DIR_RD | SOCKET_DIR_WR) } |
enum | socket_family_t { SOCKET_FAMILY_INET = 0, SOCKET_FAMILY_INET6 = 1, SOCKET_FAMILY_RAW = 2 } |
Public Member Functions | |
virtual u_result | bind (const SocketAddress &)=0 |
virtual void | dispose ()=0 |
virtual u_result | getLocalAddress (SocketAddress &)=0 |
virtual u_result | setTimeout (_u32 timeout, socket_direction_mask msk=SOCKET_DIR_BOTH)=0 |
virtual u_result | waitforData (_u32 timeout=DEFAULT_SOCKET_TIMEOUT)=0 |
virtual u_result | waitforSent (_u32 timeout=DEFAULT_SOCKET_TIMEOUT)=0 |
virtual | ~SocketBase () |
Protected Member Functions | |
SocketBase () | |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |