#include <socket.h>
Public Member Functions | |
virtual u_result | recvFrom (void *buf, size_t len, size_t &recv_len, SocketAddress *sourceAddr=NULL)=0 |
virtual u_result | sendTo (const SocketAddress &target, const void *buffer, size_t len)=0 |
Public Member Functions inherited from rp::net::SocketBase | |
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 () |
Static Public Member Functions | |
static DGramSocket * | CreateSocket (socket_family_t family=SOCKET_FAMILY_INET) |
Protected Member Functions | |
DGramSocket () | |
virtual | ~DGramSocket () |
Protected Member Functions inherited from rp::net::SocketBase | |
SocketBase () | |
Additional Inherited Members | |
Public Types inherited from rp::net::SocketBase | |
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 } |
|
inlineprotectedvirtual |
|
static |
Definition at line 841 of file linux/net_socket.cpp.
|
pure virtual |
Implemented in rp::arch::net::DGramSocketImpl, rp::arch::net::DGramSocketImpl, and rp::arch::net::DGramSocketImpl.
|
pure virtual |
Implemented in rp::arch::net::DGramSocketImpl, rp::arch::net::DGramSocketImpl, and rp::arch::net::DGramSocketImpl.