Public Member Functions

ana::connection_handler Struct Reference

Class that should be implemented to handle new connection events. More...

#include <ana.hpp>

Inheritance diagram for ana::connection_handler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~connection_handler ()
virtual void handle_connect (error_code, net_id)=0
 Handle new connection event.

Detailed Description

Class that should be implemented to handle new connection events.

Definition at line 297 of file ana.hpp.


Constructor & Destructor Documentation

virtual ana::connection_handler::~connection_handler (  )  [inline, virtual]

Definition at line 299 of file ana.hpp.


Member Function Documentation

virtual void ana::connection_handler::handle_connect ( error_code  ,
net_id   
) [pure virtual]

Handle new connection event.

Parameters:
error_code : Error code of the event.
net_id : ID of the client that connects.
See also:
error_code
net_id

Implemented in ChatClient, ChatServer, ChatClient, clients_manager, and ana_connect_handler.

Referenced by asio_server::handle_accept(), and asio_client::inform_connection_result().

Here is the caller graph for this function:


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:17:59 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs