VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Event Manager TCP Connection (eventManagerTCPGui)

Table of Contents

The Event Manager Sim example demonstrates the following:

Implementing a DtNetworkEventManager override

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.

How to Run the Example

Usage

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.

To view the new behavior:

  1. Start VR-Forces GUI and SIM.
  2. Load a pre-existing scenario - e.g. HawaiiGround.scnx
  3. Play the scenario.
  4. 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.
DtClientEventManagerTCP

The class that overrides the DtEventManagerTCP. This class will create the socket socket to connect to the network and send information to the back-end

Plugin Entry Points

/*******************************************************************************
** Copyright (c) 2018 MAK Technologies, Inc.
** All rights reserved.
*******************************************************************************/
//Implemented to be able to use the INIT_ONCE method
{
return true;
}
{
info.pluginName = "Event Manager TCP GUI";
info.pluginDescription = "This plugin will install a TCP event manager that will listen to local host port 6045 only for VRF data interactions";
info.pluginVersion = "1.00";
info.pluginCreator = "MAK Technologies";
info.pluginCreatorEmail = "sales@mak.com";
info.pluginContactWebPage = "www.mak.com";
info.pluginContactMailingAddress = "10 Fawcett Street, Suite 204, Cambridge, MA 02138 USA";
info.pluginContactPhone = "(617) 876 8085";
}

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)