libiqxmlrpc  0.12.4
 All Classes Namespaces Files Functions Typedefs Enumerations
Public Member Functions | Protected Member Functions | List of all members
iqnet::Acceptor Class Reference

#include <acceptor.h>

Inheritance diagram for iqnet::Acceptor:
iqnet::Event_handler

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 &)
 
- Public Member Functions inherited from iqnet::Event_handler
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 ()
 

Detailed Description

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.

Member Function Documentation

void iqnet::Acceptor::finish ( )
inlineprotectedvirtual

Invoked by Reactor when handle_X() sets terminate variable to true.

Reimplemented from iqnet::Event_handler.


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