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