C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::detail::connection_acceptor Class Referenceabstract

Accepts incoming connections and creates a socket manager for each. More...

#include <connection_acceptor.hpp>

Public Member Functions

virtual error start (net::socket_manager *)=0
 Callback from the socket manager for startup.
 
virtual void abort (const error &)=0
 Aborts the acceptor.
 
virtual expected< net::socket_manager_ptrtry_accept ()=0
 Tries to accept a new connection.
 
virtual net::socket handle () const =0
 Returns the socket handle of the acceptor.
 

Detailed Description

Accepts incoming connections and creates a socket manager for each.

This interface hides two implementation details: the actual acceptor (which depends on the transport) and the protocol stack used for the accepted connections.


The documentation for this class was generated from the following files: