class TcNetCavConnectionManager : public TcNetConnectionManager

Role: This class plays the role of TcNetEvent shipper and receiver

Inheritance:


Public Methods

TcNetCavConnectionManager(int argc, char* argv[], const long& clientLocalPort = 7000, const long& clientRemotePort = 7001, const bool& clientRemoteConnect = false, const TcUtString& clientUserName = TcUtString("Demo"), const TcUtString& clientWorldServer= TcUtString("localhost"), const TcUtString& clientWorldName = TcUtString("Demo"))
Constructor
virtual ~TcNetCavConnectionManager()
Destructor.
virtual TdNetCavConnection* createConnection(const TcUtString &keyName, const TdNetCavConnection::connectionType &type)
Creates a Cavern Connection
void addConnection(TdNetCavConnection *connection)
Add a connection to the connection table.
TdNetCavConnection* getConnection(const TcUtString &name)
Retrieve a connection from the connection table.
void deleteConnection(const TcUtString &name)
Remove a connection from the connection table.
void addKey(TdNetCavKey *)
Add a key to the key table.
TdNetCavKey* lookUpCavKey(const TcUtString &name)
Returns a key with the given name.
void closeLink()
Close a link.
virtual int config(long& clientLocalPort, long& clientRemotePort, TcUtString& clientUserName, TcUtString& clientWorldServer, TcUtString& clientWorldName)
Must be called to initialize the class.
const TcUtString& getWorldServer() const
Return the server name.
const TcUtString& getWorldName() const
Return the world name.
const TcUtString& getUserName() const
Return the user name.
static const CAVERN_irb_c* getCavernIrb()
Return the CAVERN irb.
const long& getLocalPort() const
Return the local port.
const long& getRemotePort() const
Return the remote port.
const bool& getRemoteConnect() const
Return the value of the remoteConnect flag.

Inherited from TcNetConnectionManager:

Public Methods

int tdSendNetworkEvent(TcNetEvent& event)
bool isConfigured() const

Protected Fields

bool configureFlag

Documentation

Role: This class plays the role of TcNetEvent shipper and receiver. It adapts the CAVERNsoft API to Tandem.
TcNetCavConnectionManager(int argc, char* argv[], const long& clientLocalPort = 7000, const long& clientRemotePort = 7001, const bool& clientRemoteConnect = false, const TcUtString& clientUserName = TcUtString("Demo"), const TcUtString& clientWorldServer= TcUtString("localhost"), const TcUtString& clientWorldName = TcUtString("Demo"))
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 ~TcNetCavConnectionManager()
Destructor.

virtual TdNetCavConnection* createConnection(const TcUtString &keyName, const TdNetCavConnection::connectionType &type)
Creates a Cavern Connection
Parameters:
keyName - The name of the Connection. Used to retrieve from the connection table.
type - Either UDP or TCP.

void addConnection(TdNetCavConnection *connection)
Add a connection to the connection table.

TdNetCavConnection* getConnection(const TcUtString &name)
Retrieve a connection from the connection table.

void deleteConnection(const TcUtString &name)
Remove a connection from the connection table.

void addKey(TdNetCavKey *)
Add a key to the key table.

TdNetCavKey* lookUpCavKey(const TcUtString &name)
Returns a key with the given name.

void closeLink()
Close a link.

virtual int config(long& clientLocalPort, long& clientRemotePort, TcUtString& clientUserName, TcUtString& clientWorldServer, TcUtString& clientWorldName)
Must be called to initialize the class.

const TcUtString& getWorldServer() const
Return the server name.

const TcUtString& getWorldName() const
Return the world name.

const TcUtString& getUserName() const
Return the user name.

static const CAVERN_irb_c* getCavernIrb()
Return the CAVERN irb.

const long& getLocalPort() const
Return the local port.

const long& getRemotePort() const
Return the remote port.

const bool& getRemoteConnect() const
Return the value of the remoteConnect flag.


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