22 #include <sys/types.h> 23 #include <sys/socket.h> 31 prefix_ void senf::ConnectedCommunicationPolicy::do_listen(
FileHandle const & handle,
37 prefix_ int senf::ConnectedCommunicationPolicy::do_accept(
FileHandle const & handle,
38 struct sockaddr * addr,
43 rv =
::accept(handle.fd(),addr,&len);
static int accept(ServerSocketHandle< SPolicy > const &handle, typename ServerSocketHandle< SPolicy >::Address &address)
accept a new connection on the socket.
CommunicationPolicy public header.
#define SENF_THROW_SYSTEM_EXCEPTION(desc)
static void listen(ServerSocketHandle< SPolicy > const &handle, unsigned backlog)
Enable establishing new connections on the socket.