MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rtiShmQNetMgr.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2005 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: rtiShmQNetMgr.h,v $ $Revision: 1.10 $ $State: Exp $
7 *********************************************************************/
10 
11 #ifndef DtRtiShmQNetMgr_H_
12 #define DtRtiShmQNetMgr_H_
13 
14 
15 #include "rtiMsConfig.h"
16 #include "asyConMgr.h"
17 #include <vlutil/vlThread.h>
18 #include "RIDparams.h"
19 #include "multicastDiscoveryMgr.h"
20 
21 #include <vlutil/vlSelectParamW.h>
22 #include <vlutil/vlHashlist.h>
23 
24 #include <vector>
25 
28 class DtRtiMsg;
29 class DtMessageFilter;
30 class DtSmConnectionMgr;
31 
41 {
42 protected:
43 
45  DtRtiShmQNetMgr( DtRIDParameters * params );
46 
47 public:
48 
50  virtual ~DtRtiShmQNetMgr();
51 
55  virtual int init(DtRIDParameters* params);
56 
59  virtual void setSmConnMgr( DtSmConnectionMgr *smConnMgr );
60 
62  virtual void enrollSmFederate( DtFederateHandle federateHandle, int fedExHandle );
63  virtual void dropSmFederate( DtFederateHandle federateHandle, int fedExHandle );
64 
65 protected:
66 
68  DtRtiShmQNetMgr( const DtRtiShmQNetMgr& orig );
70 
73  virtual bool processConnection( DtRtiConnection* conn, MAKRti::DtTransportType trans );
74  virtual DtNetReadStatus processMsg( const DtRtiMsg& msg );
75 
77  virtual void applyOutboundMsgFilters( DtRtiMsg *msg );
78  virtual DtNetReadStatus filterReliableLoopbacks( const DtRtiMsg& msg );
79 
82 
84 
85  virtual bool performMulticastDiscovery();
86 
87 public:
88 
93 
94 protected:
95 
98  MAKRti::DtInetAddr myHostIpAddr;
99  unsigned int myPort;
101 
104 
109  typedef std::multimap< DtFederateHandle, int > DtFedHandleToFedExHandleMap;
111 
115  typedef std::map< int, DtBitMask* > DtRouteMaskFilterByFedexHandle;
116  typedef std::map< MAKRti::DtString, DtBitMask* > DtRouteMaskFilterByFedexName;
117 
120 
121 };
122 
123 #endif
124 
virtual DtNetReadStatus processMsg(const DtRtiMsg &msg)
this function applies the callbacks to the message
DtConnectionMgr & operator=(DtConnectionMgr const &)
Assignment not implemented – Assignment Not Allowed!
DtNetReadStatus
Definition: connection.h:21
This class manages the RTI&#39;s start-up configuration using both MTL variables and functions.
Definition: RIDparams.h:87
MAKRti::DtInetAddr myHostIpAddr
Need to know host IP address and port used for outbound best effort messages so looped back multicast...
Definition: rtiShmQNetMgr.h:98
This class represents a network connection with another RTI component.
Definition: connection.h:38
the Asynchronous Connection Mgr adds asynchronous I/O to the connectionMgr class. ...
Definition: asyConMgr.h:60
static DtConnectionMgr * create(DtRIDParameters *p, bool isFederate=false, DtBoost::shared_ptr< DtRtiAssistantLrcClient > assistantClient=DtBoost::shared_ptr< DtRtiAssistantLrcClient >())
Creator function.
std::map< MAKRti::DtString, DtBitMask * > DtRouteMaskFilterByFedexName
Definition: rtiShmQNetMgr.h:116
unsigned int myPort
Definition: rtiShmQNetMgr.h:99
bool myCloseAllConnectionsRequested
Connection shutdown requested?
Definition: rtiShmQNetMgr.h:103
DtFedHandleToFedExHandleMap myFedHandleToFedExMap
Definition: rtiShmQNetMgr.h:110
DtRouteMaskFilterByFedexHandle myFedexHandleFilterList
Definition: rtiShmQNetMgr.h:118
std::map< int, DtBitMask * > DtRouteMaskFilterByFedexHandle
Destination list masks.
Definition: rtiShmQNetMgr.h:115
DtSmConnectionMgr * mySmConnMgr
Definition: rtiShmQNetMgr.h:100
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:60
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:45
DtHandle DtFederateHandle
Definition: internalTypes.h:29
The DtRtiShmQNetMgr class implements a network I/O socket manager to filter and exchange messages bet...
Definition: rtiShmQNetMgr.h:40
std::multimap< DtFederateHandle, int > DtFedHandleToFedExHandleMap
Stores all FedEx handles associated with each Federate Handle serviced by shared memory queue manager...
Definition: rtiShmQNetMgr.h:109
DtRouteMaskFilterByFedexName myFedexFilterList
Definition: rtiShmQNetMgr.h:119
DtMessageFilter is a base class for filters applied to DtFilteredTcpForwarder.
Definition: filteredTcpForwarder.h:32
virtual bool processConnection(DtRtiConnection *conn, MAKRti::DtTransportType trans)
Read from the given connection and process the message (if received) Return boolean: message was rece...
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
virtual int init(DtRIDParameters *params)
Initialize the RTI&#39;s exercise connections Users who wish to override the MAK RTI&#39;s network connection...
Instances of DtSmConnectionMgr manage the communication objects that the RTI will use to communicate ...
Definition: smConMgr.h:33

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)