2#include "TempFailure.h"
6#include <netinet/tcp.h>
20 const int value = enable;
21 if( ::setsockopt( m_socket, IPPROTO_TCP, TCP_NODELAY, &value,
sizeof(value)) < 0)
InternetSocket(int sockfd)
create socket from a SocketHandle returned by an accept() call
int accept() const
allows stream sockets to accept connections into Handles
int timedAccept(int timeout) const
allows stream sockets timed accept
Signals a problem with the execution of a socket call.
TCPSocket(AddressFamily family=IPv4)
SocketHandle< TCPSocket > Handle
Handle for a new socket returned by accept().
void setNoDelay(bool enable)
Enable or disable TCP_NODELAY.
Handle timedAccept(int timeout) const
wait for another socket to connect
Handle accept() const
wait for another socket to connect