User Manual, Developers Guide and API Documentation

wns::service::tl::ConnectionHandler Class Reference

tl ConnectionHandler interface. More...

#include <service/tl/ConnectionHandler.hpp>

Inheritance diagram for wns::service::tl::ConnectionHandler:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void onConnectionClosed (Connection *_disconnectedConnection)=0
 Called when an existing connection was disconnected.
virtual void onConnectionClosedByPeer (Connection *_disconnectedConnection)=0
virtual void onConnectionEstablished (wns::service::nl::Address _sourceIP, Connection *_newConnection)=0
 Called when a connection is successfully established.
virtual void onConnectionLost (Connection *_lostConnection)=0
 Called when a connection is lost, i.e. resulting from timeouts or error recovery.
virtual ~ConnectionHandler ()
 Destructor.


Detailed Description

tl components need a callback to setup new connections. Users of wns::node::component::tcp::Service provide such a callback by calling implementing the ConnectionHandler interface and passing an implementation to the Service interface during conneciton setup (either passive or active).

Definition at line 46 of file ConnectionHandler.hpp.


Constructor & Destructor Documentation

virtual wns::service::tl::ConnectionHandler::~ConnectionHandler (  )  [inline, virtual]

Reimplemented in tcp::ConnectionHandler.

Definition at line 53 of file ConnectionHandler.hpp.


Member Function Documentation

virtual void wns::service::tl::ConnectionHandler::onConnectionClosed ( Connection _disconnectedConnection  )  [pure virtual]

virtual void wns::service::tl::ConnectionHandler::onConnectionClosedByPeer ( Connection _disconnectedConnection  )  [pure virtual]

virtual void wns::service::tl::ConnectionHandler::onConnectionEstablished ( wns::service::nl::Address  _sourceIP,
Connection _newConnection 
) [pure virtual]

virtual void wns::service::tl::ConnectionHandler::onConnectionLost ( Connection _lostConnection  )  [pure virtual]


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

Generated on Sun May 27 03:33:06 2012 for openWNS by  doxygen 1.5.5