#include <acceptor.h>
Public Member Functions | |
Acceptor (const iqnet::Inet_addr &bind_addr, Accepted_conn_factory *, Reactor_base *) | |
void | set_firewall (iqnet::Firewall_base *) |
void | handle_input (bool &) |
![]() | |
virtual bool | is_stopper () const |
If this handler used as Reactor stopper. | |
virtual void | handle_output (bool &) |
virtual bool | catch_in_reactor () const |
Whether reactor should catch its exceptions. | |
virtual void | log_exception (const std::exception &) |
Log its exception catched in an external object. | |
virtual void | log_unknown_exception () |
Log its exception catched in an external object. | |
Protected Member Functions | |
void | finish () |
Socket::Handler | get_handler () const |
void | accept () |
void | listen () |
An implementation of pattern that separates TCP-connection establishment from connection handling.
Acceptor binds server-side socket to specified bind_addr and waits for incoming connections. When incoming connection is occured the Acceptor is using instance of Connection_factory to create a specific connection handler.
|
inlineprotectedvirtual |
Invoked by Reactor when handle_X() sets terminate variable to true.
Reimplemented from iqnet::Event_handler.