#include <connectionserver.h>
Public Types | ||||
| typedef GNE::SmartPtr < ConnectionServer > | sptr | |||
| typedef GNE::WeakPtr < ConnectionServer > | wptr | |||
Public Member Functions | ||||
| virtual | ~ConnectionServer (void) | |||
| virtual void | getNewConnectionParams (GNE::ConnectionParams ¶ms) | |||
| virtual void | onListenFailure (const GNE::Error &error, const GNE::Address &from, const GNE::ConnectionListener::sptr &listener) | |||
| virtual void | onListenSuccess (const GNE::ConnectionListener::sptr &listener) | |||
Static Public Member Functions | ||||
| static sptr | create (int inRate, int outRate, NetMgr *netMgr) | |||
| Method used to create a new instance of ConnectionServer. | ||||
Protected Member Functions | ||||
| ConnectionServer (int inRate, int outRate, NetMgr *netMgr) | ||||
| ||||
It is used internally by the NetMgr and is typically not used directly by the end user. This class takes in a reference to a NetMgr and calls it's virtual methods to mimic the GNE::ServerConnectionLister's callbacks.
| typedef GNE::SmartPtr<ConnectionServer> dtNet::ConnectionServer::sptr |
| typedef GNE::WeakPtr<ConnectionServer> dtNet::ConnectionServer::wptr |
| ConnectionServer::ConnectionServer | ( | int | inRate, | |
| int | outRate, | |||
| NetMgr * | netMgr | |||
| ) | [protected] |
| inRate | : the incoming bandwidth throttle |
| outRate | : the outgoing bandwidth throttlw | |
| netMgr | : instance of a valid NetMgr |
| ConnectionServer::~ConnectionServer | ( | void | ) | [virtual] |
| static sptr dtNet::ConnectionServer::create | ( | int | inRate, | |
| int | outRate, | |||
| NetMgr * | netMgr | |||
| ) | [inline, static] |
Method used to create a new instance of ConnectionServer.
| void ConnectionServer::getNewConnectionParams | ( | GNE::ConnectionParams & | params | ) | [virtual] |
| void ConnectionServer::onListenFailure | ( | const GNE::Error & | error, | |
| const GNE::Address & | from, | |||
| const GNE::ConnectionListener::sptr & | listener | |||
| ) | [virtual] |
| void ConnectionServer::onListenSuccess | ( | const GNE::ConnectionListener::sptr & | listener | ) | [virtual] |