#include <socket.h>
Public Types | |
enum | { MAX_BACKLOG = 128 } |
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 } |
Public Member Functions | |
virtual StreamSocket * | accept (SocketAddress *pairAddress=NULL)=0 |
virtual u_result | connect (const SocketAddress &pairAddress)=0 |
virtual u_result | enableKeepAlive (bool enable=true)=0 |
virtual u_result | enableNoDelay (bool enable=true)=0 |
virtual u_result | getPeerAddress (SocketAddress &)=0 |
virtual u_result | listen (int backlog=MAX_BACKLOG)=0 |
virtual u_result | recv (void *buf, size_t len, size_t &recv_len)=0 |
virtual u_result | send (const void *buffer, size_t len)=0 |
virtual u_result | shutdown (socket_direction_mask mask)=0 |
virtual u_result | waitforIncomingConnection (_u32 timeout=DEFAULT_SOCKET_TIMEOUT)=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 StreamSocket * | CreateSocket (socket_family_t family=SOCKET_FAMILY_INET) |
Protected Member Functions | |
StreamSocket () | |
virtual | ~StreamSocket () |
Protected Member Functions inherited from rp::net::SocketBase | |
SocketBase () | |
|
inlineprotectedvirtual |
|
pure virtual |
Implemented in rp::arch::net::StreamSocketImpl, rp::arch::net::StreamSocketImpl, and rp::arch::net::StreamSocketImpl.
|
pure virtual |
Implemented in rp::arch::net::StreamSocketImpl, rp::arch::net::StreamSocketImpl, and rp::arch::net::StreamSocketImpl.
|
static |
Definition at line 826 of file linux/net_socket.cpp.
|
pure virtual |
Implemented in rp::arch::net::StreamSocketImpl, rp::arch::net::StreamSocketImpl, and rp::arch::net::StreamSocketImpl.
|
pure virtual |
Implemented in rp::arch::net::StreamSocketImpl, rp::arch::net::StreamSocketImpl, and rp::arch::net::StreamSocketImpl.
|
pure virtual |
Implemented in rp::arch::net::StreamSocketImpl, rp::arch::net::StreamSocketImpl, and rp::arch::net::StreamSocketImpl.
|
pure virtual |
Implemented in rp::arch::net::StreamSocketImpl, rp::arch::net::StreamSocketImpl, and rp::arch::net::StreamSocketImpl.
|
pure virtual |
Implemented in rp::arch::net::StreamSocketImpl, rp::arch::net::StreamSocketImpl, and rp::arch::net::StreamSocketImpl.
|
pure virtual |
Implemented in rp::arch::net::StreamSocketImpl, rp::arch::net::StreamSocketImpl, and rp::arch::net::StreamSocketImpl.
|
pure virtual |
Implemented in rp::arch::net::StreamSocketImpl, rp::arch::net::StreamSocketImpl, and rp::arch::net::StreamSocketImpl.
|
pure virtual |
Implemented in rp::arch::net::StreamSocketImpl, rp::arch::net::StreamSocketImpl, and rp::arch::net::StreamSocketImpl.