#include <connectionlistener.h>
Public Types | |
| typedef GNE::SmartPtr < ConnectionListener > | sptr |
| typedef GNE::WeakPtr < ConnectionListener > | wptr |
Public Member Functions | |
| virtual | ~ConnectionListener (void) |
| virtual void | onDisconnect (GNE::Connection &conn) |
| virtual void | onExit (GNE::Connection &conn) |
| virtual void | onConnect (GNE::SyncConnection &conn) |
| virtual void | onConnectFailure (GNE::Connection &conn, const GNE::Error &error) |
| virtual void | onNewConn (GNE::SyncConnection &conn) |
| virtual void | onReceive (GNE::Connection &conn) |
| virtual void | onFailure (GNE::Connection &conn, const GNE::Error &error) |
| virtual void | onError (GNE::Connection &conn, const GNE::Error &error) |
Static Public Member Functions | |
| static sptr | create (NetMgr *netMgr) |
| static method used to create a new ConnectionListener | |
Protected Member Functions | |
| ConnectionListener (NetMgr *netMgr) | |
This class is used internally by the NetMgr and is typically not used directly by the end user. This class contains a reference to an instance of NetMgr and calls it's virtual methods, mimicking the GNE interface.
| typedef GNE::SmartPtr<ConnectionListener> dtNet::ConnectionListener::sptr |
| typedef GNE::WeakPtr<ConnectionListener> dtNet::ConnectionListener::wptr |
| ConnectionListener::~ConnectionListener | ( | void | ) | [virtual] |
| ConnectionListener::ConnectionListener | ( | NetMgr * | netMgr | ) | [protected] |
static method used to create a new ConnectionListener
| void ConnectionListener::onDisconnect | ( | GNE::Connection & | conn | ) | [virtual] |
| void ConnectionListener::onExit | ( | GNE::Connection & | conn | ) | [virtual] |
| void ConnectionListener::onConnect | ( | GNE::SyncConnection & | conn | ) | [virtual] |
| void ConnectionListener::onConnectFailure | ( | GNE::Connection & | conn, | |
| const GNE::Error & | error | |||
| ) | [virtual] |
| void ConnectionListener::onNewConn | ( | GNE::SyncConnection & | conn | ) | [virtual] |
| void ConnectionListener::onReceive | ( | GNE::Connection & | conn | ) | [virtual] |
| void ConnectionListener::onFailure | ( | GNE::Connection & | conn, | |
| const GNE::Error & | error | |||
| ) | [virtual] |
| void ConnectionListener::onError | ( | GNE::Connection & | conn, | |
| const GNE::Error & | error | |||
| ) | [virtual] |