MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
smConnection.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2005 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: smConnection.h,v $ $Revision: 1.10 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtSmRtiConnection_H_
13 #define DtSmRtiConnection_H_ 1
14 
15 #include <vlutil/vlString.h>
16 #include <vlutil/vlTime.h>
17 #include <list>
18 #include <assert.h>
19 #include "connection.h"
20 #include "rtiSmSocket.h"
21 #include <vlutil/vlFedTarget.h>
22 
24 {
25 public:
26 
29 
31  virtual ~DtSmRtiConnection();
32 
37  virtual int send(const DtRtiMsg& msg,
38  const MAKRti::DtInetAddr& addr = MAKRti::DtInetAddr::inaddrAny());
39 
41  virtual int send(const DtRtiMsg& msg, MAKRti::DtTransportType transport,
42  const MAKRti::DtInetAddr& addr = MAKRti::DtInetAddr::inaddrAny(),
43  unsigned int priority = 0);
44 
47  virtual bool flush();
48 
53  virtual int getMessageNetInfo(MAKRti::DtInetAddr *addr, MAKRti::DtTransportType *trans,
54  DtU32 *priority = NULL);
55 
57  virtual bool isReliable();
58 
61  virtual int waitForMessages(MAKRti::DtTime waitTime = 0.0);
62 
65  virtual int waitUntilFull(MAKRti::DtTime waitTime = 0.0);
66 
70  virtual bool sm_shutdown(bool ruthless = false);
71 
73  virtual int subscriberCount() const;
74 
75 protected:
76 
78 
80  typedef std::list< DtRtiMsg* > DtOutboundPendingList;
82 
83 };
84 
85 #endif
DtOutboundPendingList myObPendingMessages
Definition: smConnection.h:81
virtual int send(const DtRtiMsg &msg, const MAKRti::DtInetAddr &addr=MAKRti::DtInetAddr())
Send a message.
virtual bool flush()
Send buffered messages.
This class represents a network connection with another RTI component.
Definition: connection.h:38
DtRtiSmSocket provides access to shared memory via a subscribable message queue tailored to the need ...
Definition: rtiSmSocket.h:28
DtRtiSmSocket * mySmSocket
Definition: smConnection.h:77
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:45
Definition: smConnection.h:23
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
rtiSmSocket.h provides the definition of DtRtiSmSocket which provides a socket-like interface to an i...
std::list< DtRtiMsg * > DtOutboundPendingList
for reliable connections only
Definition: smConnection.h:80

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)