ConnectedSocket

Wrapper for connection oriented sockets.

Alias This

sock

Members

Functions

accept
ConnectedSocket accept(SockAddr clientAddr, bool nodelay, Timeout timeout)

draws a new client connection from a listening socket

setNagle
void setNagle(bool on)

Enables or disables Nagle on a TCP socket

Static functions

connect
ConnectedSocket connect(SockAddr sa, Timeout timeout, bool nodelay)
ConnectedSocket connect(SA sa, Timeout timeout, bool nodelay)

Create a stream socket and connect, as client, to the address supplied

listen
ConnectedSocket listen(SockAddr sa, bool reuseAddr)
ConnectedSocket listen(SA sa, bool reuseAddr)

Create a stream socket and bind, as a listening server, to the address supplied

Variables

sock
Socket sock;
Undocumented in source.

Meta