An established TCP-connection. More...
#include <connection.h>
Public Member Functions | |
Connection (const Socket &) | |
void | finish () |
virtual void | post_accept () |
virtual void | post_connect () |
const iqnet::Inet_addr & | get_peer_addr () const |
Socket::Handler | get_handler () const |
virtual size_t | send (const char *, size_t) |
virtual size_t | recv (char *, size_t) |
![]() | |
virtual bool | is_stopper () const |
If this handler used as Reactor stopper. | |
virtual void | handle_input (bool &) |
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 Attributes | |
Socket | sock |
An established TCP-connection.
A build block for connection handling. Have to be created by connection's factory.
|
virtual |
Invoked by Reactor when handle_X() sets terminate variable to true.
Reimplemented from iqnet::Event_handler.
Reimplemented in iqxmlrpc::Http_server_connection, and iqxmlrpc::Https_server_connection.