MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
gsConnection.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001, 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: gsConnection.h,v $ $Revision: 1.11 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtGsRtiConnection_H_
10 #define DtGsRtiConnection_H_ 1
11 
14 
15 #include "connection.h"
16 
17 class DtUdpMsgSocket;
18 
26 {
27 public:
28 
32  DtGsRtiConnection(DtUdpMsgSocket *skt, const MAKRti::DtInetAddr& destAddr);
33 
35  virtual ~DtGsRtiConnection();
36 
37 private:
38 
41 
44 
45 public:
51  virtual int send(const DtRtiMsg& msg, const MAKRti::DtInetAddr& destaddr);
52 
54  virtual void removeAllRemoteSites();
55 
57  virtual void addRemoteSite(const MAKRti::DtInetAddr& addr);
59  virtual void removeRemoteSite(const MAKRti::DtInetAddr& addr);
60 
61 protected:
62 
64  virtual int sendToAllRemoteSites(
65  caddr_t pkt, size_t size, const MAKRti::DtInetAddr& dwSkipAddr = MAKRti::DtInetAddr::inaddrAny());
66 
68  std::set<MAKRti::DtInetAddr> myRemoteSites;
69 
71  MAKRti::DtInetAddr myDestAddr;
74 
75 };
76 
77 #endif
MAKRti::DtInetAddr myDestAddr
Default destination address. Should not be added to list of remote sites.
Definition: gsConnection.h:71
virtual int send(const DtRtiMsg &msg, const MAKRti::DtInetAddr &addr=MAKRti::DtInetAddr())
Send a message.
This class represents a network connection with another RTI component.
Definition: connection.h:38
DtUdpMsgSocket * myGroupSocket
Pointer to DtNetSocket (or subclass) object associated with connection.
Definition: gsConnection.h:73
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:45
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
std::set< MAKRti::DtInetAddr > myRemoteSites
List of DtInetAddrs (which do not need to be deleted).
Definition: gsConnection.h:68
DtRtiConnection & operator=(DtRtiConnection const &orig)
Assignment Operator not implemented.
The DtUdpMsgSocket class provides an address family independent UDP socket that handles RTI messages...
Definition: udpMsgSocket.h:28
The DtGsRtiConnection class extends the DtRtiConnection class to allow messages to be sent to multipl...
Definition: gsConnection.h:25

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)