#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 () |
virtual rp::net::SocketBase::~SocketBase | ( | ) | [inline, virtual] |
rp::net::SocketBase::SocketBase | ( | ) | [inline, protected] |
virtual u_result rp::net::SocketBase::bind | ( | const SocketAddress & | ) | [pure virtual] |
virtual void rp::net::SocketBase::dispose | ( | ) | [pure virtual] |
virtual u_result rp::net::SocketBase::getLocalAddress | ( | SocketAddress & | ) | [pure virtual] |
virtual u_result rp::net::SocketBase::setTimeout | ( | _u32 | timeout, |
socket_direction_mask | msk = SOCKET_DIR_BOTH |
||
) | [pure virtual] |
virtual u_result rp::net::SocketBase::waitforData | ( | _u32 | timeout = DEFAULT_SOCKET_TIMEOUT | ) | [pure virtual] |
virtual u_result rp::net::SocketBase::waitforSent | ( | _u32 | timeout = DEFAULT_SOCKET_TIMEOUT | ) | [pure virtual] |