18 #ifndef HH_SENF_Socket_CommunicationPolicy_ 19 #define HH_SENF_Socket_CommunicationPolicy_ 1 35 template <
class SPolicy>
class ServerSocketHandle;
45 template <
class SPolicy>
49 template <
class SPolicy>
57 template <
class SPolicy>
62 template <
class SPolicy>
88 static void do_listen(
FileHandle const & handle,
unsigned backlog);
89 static int do_accept(
FileHandle const & handle,
struct sockaddr * addr,
unsigned len);
Inversion of IfAddressingPolicyIs.
static int accept(ServerSocketHandle< SPolicy > const &handle, typename ServerSocketHandle< SPolicy >::Address &address)
accept a new connection on the socket.
SPolicy::AddressingPolicy::Address Address
Address type from the addressing policy.
CommunicationPolicy for connected sockets.
Policy defining, how peers are selected.
Generic SocketHandle with server interface.
Basic file handle wrapper.
static void listen(ServerSocketHandle< SPolicy > const &handle, unsigned backlog)
Enable establishing new connections on the socket.
CommunicationPolicy for unconnected sockets.
NoAddressingPolicy public header.
FileHandle public header.