class CAVERN_builder_NetManager : public TcNetManager

Network manager class

Inheritance:


Public Methods

CAVERN_builder_NetManager(int argc, char* argv[], long& clientLocalPort, long& clientRemotePort, bool& clientRemoteConnect, TcUtString& clientUserName, TcUtString& clientWorldServer, TcUtString& clientWorldName, CAVERN_builder_ClientProfile &profile)
Constructor.
virtual ~CAVERN_builder_NetManager()
Destructor
virtual TcNetConnectionManager* createNetConnectionManager()
Factory Method
virtual TcNetEventManager* createNetEventManager()
Factory Method
void createPublicKeys()
Connection initialization method
void createPublicAvatarKeys()
Avatar connection initialization method
void sendTrackerData(TrackerData &, TrackerData &)
Sends tracker update across the network.
void shareModel(const TcUtString &compName, const TcUtString &fileName, const TcUtVector3f &scale, const TcUtVector3f &rot, const TcUtVector3f &trans, const CAVERN_builder_GeometryTransferEvent::CompAtts &compAtts, const bool &collision)
Sends a model from a startup script across the network.
void shareModel(const TcUtString &compName, const TcUtString &fileName, float matrix[], const CAVERN_builder_GeometryTransferEvent::CompAtts &compAtts, const bool &collision)
Sends a model resulting from run-time interaction across the network.
void sendModelUpdate(CAVERN_builder_NetModelUpdateEvent &event)
Sends an update of a model's transformation matrix across the network.
void removeSharedModel(const TcUtString &id)
Sends a remove model event across the network.
const TcUtString& getConnectionId()
Retrieves the connectionId that is established during network initialization.

Protected Methods

static void newConnectionKeyCB(CAVERN_irbKey_c::CAVERN_irbKeyEvent_t event, CAVERN_irbKey_c *thisKey, void* userData)
Callback used only during initialization.
static void publicAvatarUpdateKeyCB( CAVERN_irbKey_c::CAVERN_irbKeyEvent_t event, CAVERN_irbKey_c *thisKey, void* userData)
Callback for avatar update data.
static void publicAvatarEventKeyCB( CAVERN_irbKey_c::CAVERN_irbKeyEvent_t event, CAVERN_irbKey_c *thisKey, void* userData)
Callback for avatar event data.
static void publicModelUpdateKeyCB( CAVERN_irbKey_c::CAVERN_irbKeyEvent_t event, CAVERN_irbKey_c *thisKey, void* userData)
Callback for model update data.

Documentation

Network manager class. This class inherits from the Tandem core network manager class. It is responsible for returning the NetConnectionManager and the NetEventManager to its base clas via two create factory methods. It also provides an interface to the network layer to the rest of the application.
CAVERN_builder_NetManager(int argc, char* argv[], long& clientLocalPort, long& clientRemotePort, bool& clientRemoteConnect, TcUtString& clientUserName, TcUtString& clientWorldServer, TcUtString& clientWorldName, CAVERN_builder_ClientProfile &profile)
Constructor.

virtual ~CAVERN_builder_NetManager()
Destructor

virtual TcNetConnectionManager* createNetConnectionManager()
Factory Method

virtual TcNetEventManager* createNetEventManager()
Factory Method

void createPublicKeys()
Connection initialization method. This method establishes public session and model keys and connections during class instantiation.

void createPublicAvatarKeys()
Avatar connection initialization method. This method sets up the necessary connections for transfer of avatar event and update data.

void sendTrackerData(TrackerData &, TrackerData &)
Sends tracker update across the network.

void shareModel(const TcUtString &compName, const TcUtString &fileName, const TcUtVector3f &scale, const TcUtVector3f &rot, const TcUtVector3f &trans, const CAVERN_builder_GeometryTransferEvent::CompAtts &compAtts, const bool &collision)
Sends a model from a startup script across the network.

void shareModel(const TcUtString &compName, const TcUtString &fileName, float matrix[], const CAVERN_builder_GeometryTransferEvent::CompAtts &compAtts, const bool &collision)
Sends a model resulting from run-time interaction across the network.

void sendModelUpdate(CAVERN_builder_NetModelUpdateEvent &event)
Sends an update of a model's transformation matrix across the network.

void removeSharedModel(const TcUtString &id)
Sends a remove model event across the network.

const TcUtString& getConnectionId()
Retrieves the connectionId that is established during network initialization.

static void newConnectionKeyCB(CAVERN_irbKey_c::CAVERN_irbKeyEvent_t event, CAVERN_irbKey_c *thisKey, void* userData)
Callback used only during initialization.

static void publicAvatarUpdateKeyCB( CAVERN_irbKey_c::CAVERN_irbKeyEvent_t event, CAVERN_irbKey_c *thisKey, void* userData)
Callback for avatar update data.

static void publicAvatarEventKeyCB( CAVERN_irbKey_c::CAVERN_irbKeyEvent_t event, CAVERN_irbKey_c *thisKey, void* userData)
Callback for avatar event data.

static void publicModelUpdateKeyCB( CAVERN_irbKey_c::CAVERN_irbKeyEvent_t event, CAVERN_irbKey_c *thisKey, void* userData)
Callback for model update data.


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