VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Event Manager TCP Connection (Event Manager Sim)

Table of Contents

This example will show how to replace the sending of events from using the VR-Link exercise connection to send VR-Forces data interactions to using a TCP socket to send these data interactions.

This example only will allow usage on port 6000 and connect to local host. It will also only have the front-end connect to a single back-end. The intent of this example is to show how you can replace the DtNetworkEventManager with one of your own to deal with events before they get sent out over the normal DIS/HLA network.

The Event Manager Sim example demonstrates the following:

Implementing a DtNetworkEventManager override

In the Launcher, click the Plug-ins button to bring up the Plug-ins Selection dialog. Enable the eventManagerTCP plugin for this example to work.

  1. Start vrfGui.
  2. Run VR-Forces as normal. You should notice no difference in the operation of VR-Forces other than netDump or vrfMsgDump will no longer show VR-Forces data interactions being sent over the network.

Classes

DtEventManagerTCPThe class that overrides the DtNetworkEventManager. This class will provide basic functionality for sending/receiving a DtDataInteraction on the TCP network.
DtServerEventManagerTCPThe class that overrides the DtEventManagerTCP. This class will create the socket manager and send information over the TCP socket

Plugin Entry Points

 

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)