class TcNetManager

Abstract base class for Network Manager

Public Methods

TcNetManager(int argc, char* argv[], long& clientLocalPort, long& clientRemotePort, bool& clientRemoteConnect, TcUtString& clientUserName, TcUtString& clientWorldServer, TcUtString& clientWorldName)
Constructor
virtual ~TcNetManager()
Destructor.
virtual TcNetConnectionManager* createNetConnectionManager()
Factory Method
virtual TcNetEventManager* createNetEventManager()
Factory Method
int config()
Must be called prior to using the factory method products.
bool isConfigured() const
Determines if config has been called.
void handleNetworkEvents()
Called from the Tandem Execution Control loop once per iteration.
const long& getLocalPort()
Returns the client port.
TcUtString getLocalHost()
Returns the client host name.

Protected Fields

int localArgC
argc argument from main()
char** localArgV
argv argument from main()
long localPort
port number of the client
long remotePort
port number of the server
bool remoteConnect
determines whether connection to server is needed.
TcUtString userName
name requested for connection to server
TcUtString worldServer
url of the server to connect to.
TcUtString worldName
name of the world to connect to on the server.

Protected Methods

const TcNetEventManager* getEventManager()
Returns the Event Manager
const TcNetConnectionManager* getConnectionManager()
Returns the Connection Manager

Documentation

Abstract base class for Network Manager
TcNetManager(int argc, char* argv[], long& clientLocalPort, long& clientRemotePort, bool& clientRemoteConnect, TcUtString& clientUserName, TcUtString& clientWorldServer, TcUtString& clientWorldName)
Constructor
Parameters:
argc - argument from main()
argv - argument from main()
clientLocalPort - port number of the client
clientRemotePort - port number of the server
clientRemoteConnect - determines whether connection to server is needed.
clientUserName - name requested for connection to server.
clientWorldServer - url of the server to connect to.
clientWorldName - name of the world to connect to on the server.

virtual ~TcNetManager()
Destructor.

virtual TcNetConnectionManager* createNetConnectionManager()
Factory Method

virtual TcNetEventManager* createNetEventManager()
Factory Method

int config()
Must be called prior to using the factory method products.

bool isConfigured() const
Determines if config has been called.

void handleNetworkEvents()
Called from the Tandem Execution Control loop once per iteration.

const long& getLocalPort()
Returns the client port.

TcUtString getLocalHost()
Returns the client host name.

const TcNetEventManager* getEventManager()
Returns the Event Manager

const TcNetConnectionManager* getConnectionManager()
Returns the Connection Manager

int localArgC
argc argument from main()

char** localArgV
argv argument from main()

long localPort
port number of the client

long remotePort
port number of the server

bool remoteConnect
determines whether connection to server is needed.

TcUtString userName
name requested for connection to server

TcUtString worldServer
url of the server to connect to.

TcUtString worldName
name of the world to connect to on the server.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de