#include <serverconnectionlistener.h>
Public Types | |
| typedef GNE::SmartPtr < ServerConnectionListener > | sptr |
| typedef GNE::WeakPtr < ServerConnectionListener > | wptr |
Public Member Functions | |
| ServerConnectionListener (ServerNetworkComponent *serverNetworkComp, int inRate, int outRate, bool reliable) | |
| Construct a ServerConnectionListener. | |
| virtual | ~ServerConnectionListener (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 (ServerNetworkComponent *serverNetworkComp, int inRate, int outRate, bool reliable) |
| Method used to create a new instance of ServerConnectionListener. | |
Protected Attributes | |
| int | mInRate |
| int | mOutRate |
| The incoming bandwidth rate. | |
| bool | mReliable |
| The outgoing bandwidth rate. | |
| dtCore::RefPtr < ServerNetworkComponent > | mServerNetworkcomponent |
| The reliability of the connection. | |
| GNE::Mutex | mMutex |
It is used internally by the ServerNetworkComponent and is typically not used directly by the end user. This class takes in a reference to a ServerNetworkComponent and calls it's virtual methods to mimic the GNE::ServerConnectionLister's callbacks.
| typedef GNE::SmartPtr<ServerConnectionListener> dtNetGM::ServerConnectionListener::sptr |
| typedef GNE::WeakPtr<ServerConnectionListener> dtNetGM::ServerConnectionListener::wptr |
| dtNetGM::ServerConnectionListener::ServerConnectionListener | ( | ServerNetworkComponent * | serverNetworkComp, | |
| int | inRate, | |||
| int | outRate, | |||
| bool | reliable | |||
| ) |
Construct a ServerConnectionListener.
| serverNetworkComp | : instance of a ServerNetworkComponent | |
| inRate | : the incoming bandwidth throttle | |
| outRate | : the outgoing bandwidth throttle | |
| reliable | : reliability of the Network connection |
| dtNetGM::ServerConnectionListener::~ServerConnectionListener | ( | void | ) | [virtual] |
| static sptr dtNetGM::ServerConnectionListener::Create | ( | ServerNetworkComponent * | serverNetworkComp, | |
| int | inRate, | |||
| int | outRate, | |||
| bool | reliable | |||
| ) | [inline, static] |
Method used to create a new instance of ServerConnectionListener.
| void dtNetGM::ServerConnectionListener::getNewConnectionParams | ( | GNE::ConnectionParams & | params | ) | [virtual] |
| void dtNetGM::ServerConnectionListener::onListenFailure | ( | const GNE::Error & | error, | |
| const GNE::Address & | from, | |||
| const GNE::ConnectionListener::sptr & | listener | |||
| ) | [virtual] |
| void dtNetGM::ServerConnectionListener::onListenSuccess | ( | const GNE::ConnectionListener::sptr & | listener | ) | [virtual] |
int dtNetGM::ServerConnectionListener::mInRate [protected] |
int dtNetGM::ServerConnectionListener::mOutRate [protected] |
The incoming bandwidth rate.
bool dtNetGM::ServerConnectionListener::mReliable [protected] |
The outgoing bandwidth rate.
dtCore::RefPtr<ServerNetworkComponent> dtNetGM::ServerConnectionListener::mServerNetworkcomponent [protected] |
The reliability of the connection.
GNE::Mutex dtNetGM::ServerConnectionListener::mMutex [protected] |