Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

ConnectionDataHandler Class Reference

This is an abstract base class to receive events from a ConnectionBase-derived object. More...

#include <connectiondatahandler.h>

Inherited by ClientBase, ConnectionHTTPProxy, ConnectionSOCKS5Proxy, SOCKS5Bytestream, and SOCKS5BytestreamServer.

Inheritance diagram for ConnectionDataHandler:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~ConnectionDataHandler ()
virtual void handleReceivedData (const ConnectionBase *connection, const std::string &data)=0
virtual void handleConnect (const ConnectionBase *connection)=0
virtual void handleDisconnect (const ConnectionBase *connection, ConnectionError reason)=0

Detailed Description

This is an abstract base class to receive events from a ConnectionBase-derived object.

You should not need to use this class directly.

Author:
Jakob Schröter <js@camaya.net>
Since:
0.9

Definition at line 33 of file connectiondatahandler.h.


Constructor & Destructor Documentation

virtual ~ConnectionDataHandler  )  [inline, virtual]
 

Virtual Destructor.

Definition at line 39 of file connectiondatahandler.h.


Member Function Documentation

virtual void handleConnect const ConnectionBase connection  )  [pure virtual]
 

This function is called when e.g. the raw TCP connection was established.

Parameters:
connection The connection.

Implemented in ClientBase, ConnectionHTTPProxy, ConnectionSOCKS5Proxy, SOCKS5Bytestream, and SOCKS5BytestreamServer.

virtual void handleDisconnect const ConnectionBase connection,
ConnectionError  reason
[pure virtual]
 

This connection is called when e.g. the raw TCP connection was closed.

Parameters:
connection The connection.
reason The reason for the disconnect.

Implemented in ClientBase, ConnectionHTTPProxy, ConnectionSOCKS5Proxy, SOCKS5Bytestream, and SOCKS5BytestreamServer.

virtual void handleReceivedData const ConnectionBase connection,
const std::string &  data
[pure virtual]
 

This function is called for received from the underlying transport.

Parameters:
connection The connection that received the data.
data The data received.

Implemented in ClientBase, ConnectionHTTPProxy, ConnectionSOCKS5Proxy, SOCKS5Bytestream, and SOCKS5BytestreamServer.


The documentation for this class was generated from the following file:
Generated on Sat Oct 31 19:56:21 2009 for gloox by  doxygen 1.4.1