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

An established TCP-connection. More...

#include <connection.h>

Inheritance diagram for iqnet::Connection:
iqnet::Event_handler iqnet::ssl::Connection iqxmlrpc::Http_client_connection iqxmlrpc::Http_server_connection iqxmlrpc::Https_proxy_client_connection iqnet::ssl::Reaction_connection iqxmlrpc::Http_proxy_client_connection iqxmlrpc::Https_client_connection iqxmlrpc::Https_server_connection

Public Member Functions

 Connection (const Socket &)
 
void finish ()
 
virtual void post_accept ()
 
virtual void post_connect ()
 
const iqnet::Inet_addrget_peer_addr () const
 
Socket::Handler get_handler () const
 
virtual size_t send (const char *, size_t)
 
virtual size_t recv (char *, size_t)
 
- Public Member Functions inherited from iqnet::Event_handler
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
 

Detailed Description

An established TCP-connection.

A build block for connection handling. Have to be created by connection's factory.

Member Function Documentation

void Connection::finish ( )
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.


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