C++ Actor Framework 1.0.0
|
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_ptr > | try_accept ()=0 |
Tries to accept a new connection. | |
virtual net::socket | handle () const =0 |
Returns the socket handle of the acceptor. | |
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.