gloox
1.0.1
|
#include <connectiondatahandler.h>
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 |
This is an abstract base class to receive events from a ConnectionBase-derived object.
You should not need to use this class directly.
Definition at line 35 of file connectiondatahandler.h.
|
inlinevirtual |
Virtual Destructor.
Definition at line 41 of file connectiondatahandler.h.
|
pure virtual |
This function is called when e.g. the raw TCP connection was established.
connection | The connection. |
Implemented in ClientBase, ConnectionTLS, ConnectionSOCKS5Proxy, ConnectionHTTPProxy, SOCKS5Bytestream, SOCKS5BytestreamServer, and Client.
|
pure virtual |
This connection is called when e.g. the raw TCP connection was closed.
connection | The connection. |
reason | The reason for the disconnect. |
Implemented in ClientBase, ConnectionTLS, ConnectionSOCKS5Proxy, ConnectionHTTPProxy, SOCKS5Bytestream, and SOCKS5BytestreamServer.
|
pure virtual |
This function is called for received from the underlying transport.
connection | The connection that received the data. |
data | The data received. |
Implemented in ClientBase, ConnectionTLS, ConnectionSOCKS5Proxy, ConnectionHTTPProxy, SOCKS5Bytestream, and SOCKS5BytestreamServer.