dtNet::ConnectionServer Class Reference

This class is used as an interface to the GNE::Server connection. More...

#include <connectionserver.h>

List of all members.

Public Types

typedef GNE::SmartPtr
< ConnectionServer
sptr
typedef GNE::WeakPtr
< ConnectionServer
wptr

Public Member Functions

virtual ~ConnectionServer (void)
virtual void getNewConnectionParams (GNE::ConnectionParams &params)
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)
 
Parameters:
inRate : the incoming bandwidth throttle


Detailed Description

This class is used as an interface to the GNE::Server connection.

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.


Member Typedef Documentation

typedef GNE::SmartPtr<ConnectionServer> dtNet::ConnectionServer::sptr

typedef GNE::WeakPtr<ConnectionServer> dtNet::ConnectionServer::wptr


Constructor & Destructor Documentation

ConnectionServer::ConnectionServer ( int  inRate,
int  outRate,
NetMgr netMgr 
) [protected]

Parameters:
inRate : the incoming bandwidth throttle

Parameters:
outRate : the outgoing bandwidth throttlw
netMgr : instance of a valid NetMgr

ConnectionServer::~ConnectionServer ( void   )  [virtual]


Member Function Documentation

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]


http://www.delta3d.org
2.0.0 generated 14 Feb 2008