MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tcpForwarder__vl__.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: tcpForwarder__vl__.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 #ifndef tcpForwarder__vl___H_
9 #define tcpForwarder__vl___H_
10 
19 
20 #include <vlutil/vlMachineTypes.h>
21 #include <vlutil/vlNetTypes.h>
22 #include <vlutil/vlUtil.h>
23 #include <tcpMsgSocketMgr.h>
24 #include "rtiMsConfig.h"
25 
26 #ifdef DtUSE_UTILITIES_NAMESPACE
27 namespace DtUSE_UTILITIES_NAMESPACE
28 {
29 #endif
30 
31 class DtClock;
32 class DtInetAddr;
33 
38 {
39 public:
40 
43  DtTcpForwarder__vl__(int port,
44  const DtInetAddr& networkInterface=DtInetAddr::inaddrAny());
45 
49 
51  virtual ~DtTcpForwarder__vl__();
52 
53 private:
54 
57 
59  DtTcpForwarder__vl__& operator=(const DtTcpForwarder__vl__ &);
60 
61 public:
63  virtual void sendToAll(caddr_t packet, size_t size);
64 
70  virtual void readAndForward(
71  DtTime maxTimeOverAll, DtTime maxTimePerSocket);
72 
76  virtual void readAndForward(DtTcpMsgSocket* sock, DtTime stopTime);
77 
79  virtual DtTcpMsgSocketMgr* socketMgr();
80 
81 protected:
82 
85 
87  DtClock myClock;
88 
91 };
92 
93 
94 #ifdef DtUSE_UTILITIES_NAMESPACE
95 } // end of namespace DtUSE_UTILITIES_NAMESPACE
96 #endif
97 
98 #endif
DtTcpMsgSocketMgr * mySocketMgr
Pointer to the socket manager object owned by this instance.
Definition: tcpForwarder__vl__.h:84
Instances of the DtTcpForwarder__vl__ class manage TCP connections for variants of Forwarder (servers...
Definition: tcpForwarder__vl__.h:37
Definition: tcpMsgSocketMgr.h:45
DtTcpMsgSocket * myBeginSock
The socket to begin processing next time we readAndForwarder.
Definition: tcpForwarder__vl__.h:90
The DtTcpMsgSocket class provides an address family independent TCP socket that handles RTI messages...
Definition: tcpMsgSocket.h:42
DtClock myClock
Clock object used to meter processing time .
Definition: tcpForwarder__vl__.h:87
#define DT_DLL_FORWARDER
Definition: rtiMsConfig.h:124

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)