MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantAwaitingFwsMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: assistantAwaitingFwsMsg.h,v $ $Revision: 1.6 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtAssistantAwaitingForwardersMsg_H_
10 #define DtAssistantAwaitingForwardersMsg_H_
11 
15 
16 #include <vlutil/vlString.h>
17 #include <vlutil/vlUtil.h>
18 
19 #include "assistantMsg.h"
20 #include "federationInfo.h"
23 #include "rtiVersion.h"
24 
28 
29 typedef void (*DtAssistantAwaitingForwardersCb)(const DtAssistantAwaitingForwardersMsg& inter, void* usr);
30 
37 {
38 public:
39 
41  DtAssistantAwaitingForwardersMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
42 
44  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
45 
48 
50  virtual DtAssistantMsg* clone(bool copy = true) const;
51 
53  virtual void printData() const;
54 
55 public:
56 
58  static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial,
59  MAKRti::DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
60 
61  static DtAssistantMsg* create(MAKRti::DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
62 
65  static void addCallback(DtRtiAssistantServer* conn,
66  DtAssistantAwaitingForwardersCb cb, void* usr);
67  static void removeCallback(DtRtiAssistantServer* conn,
68  DtAssistantAwaitingForwardersCb cb, void* usr);
69 
72  static void addCallback(DtRtiAssistantClient* conn,
73  DtAssistantAwaitingForwardersCb cb, void* usr);
74  static void removeCallback(DtRtiAssistantClient* conn,
75  DtAssistantAwaitingForwardersCb cb, void* usr);
76 
78  void getForwarders(DtNeededFwConnMap& fws) const;
79 
81  void setForwarders(const DtNeededFwConnMap& fws);
82 
85  bool isWaitingForForwarders() const;
86 
89  void setIsWaitingForForwarders(bool isWaiting);
90 
92  unsigned int numForwarders() const;
93 
94 protected:
95 
97  virtual DtNetAssistantAwaitingForwardersMsg* netAssistantAwaitingForwardersMsg();
98  virtual const DtNetAssistantAwaitingForwardersMsg* netAssistantAwaitingForwardersMsg() const;
99 
102 
104  virtual int minSize() const;
105 
107  virtual const DtNetU128* forwarderAddrsPtr() const;
108  virtual DtNetU128* forwarderAddrsPtr();
109 
111  virtual const DtNetU16* forwarderPortsPtr() const;
112  virtual DtNetU16* forwarderPortsPtr();
113 
115  virtual unsigned int forwarderNamesSize() const;
116  virtual void setForwarderNamesSize(unsigned int size);
117 
119  virtual const char* forwarderNamesPtr() const;
120  virtual char* forwarderNamesPtr();
121 
123  const DtNetU8* forwarderConnectedPtr() const;
124  DtNetU8* forwarderConnectedPtr();
125 };
126 
127 #endif
This file contains the declaration of DtAssistantFederationInfo.
This file contains the declaration of DtRtiAssistantForwarderClient.
Definition: netAssistantMsgHdr.h:26
void(* DtAssistantAwaitingForwardersCb)(const DtAssistantAwaitingForwardersMsg &inter, void *usr)
Definition: assistantAwaitingFwsMsg.h:29
Manages the client connection to the RTI Assistant.
Definition: rtiAssistantClient.h:59
DtAssistantMsgKind
Definition: assistantMsg.h:52
Base class for assistant Messages.
Definition: assistantMsg.h:152
virtual DtAssistantMsgKind internalMsgKind()=0
#define DT_DLL_ASSISTANT
_WIN32
Definition: rtiMsConfig.h:121
Manages the server connections of the RTI Assistant.
Definition: rtiAssistantServer.h:45
The DtAssistantAwaitingForwardersMsg defines a wrapper for the RTI Assistant message sent to an assis...
Definition: assistantAwaitingFwsMsg.h:36
virtual DtAssistantMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual void printData() const
std::map< DtInetAddrAndPort, DtNameAndConnStatus > DtNeededFwConnMap
Definition: rtiAssistantForwarderClient.h:23
Network representation for the RTI Assistant Awaiting Forwarders message that contains a list of forw...
Definition: netAssistantAwaitingFwsMsg.h:25

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)