MAK RTIspy API Documentation for HLA 1.3
multicastDiscoveryMgr.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2005 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: multicastDiscoveryMgr.h,v $ $Revision: 1.13 $ $State: Exp $
7 *********************************************************************/
10 
11 #ifndef DtMulitcastDiscoveryMgr_H_
12 #define DtMulitcastDiscoveryMgr_H_
13 
14 #include "multicastDiscoveryMsg.h"
15 #include "rtiMsConfig.h"
16 #include <vlutil/vlUtil.h>
17 #include <vlutil/vlTime.h>
18 #include <vlutil/vlInetAddr.h>
19 #include <utility>
20 
21 class DtRIDParameters;
22 class DtUdpMsgSocket;
23 
34 {
35 private:
38 
39 public:
41  typedef std::pair< MAKRti::DtInetAddr, unsigned int > DtMcastResponderId;
42 
43 
47  bool isResponder = false,
48  bool allowMultipleResponders = false );
50  virtual ~DtMulitcastDiscoveryMgr();
51 
53  virtual bool init();
54 
57  virtual DtMcastResponderId discover();
58 
60  virtual bool responderAlreadyExists();
61 
64  virtual bool tick(float timeToWait);
65 
66  virtual inline MAKRti::DtInetAddr hostAddr() const;
67 
68 protected:
69 
70 
72  virtual DtMcastResponderId requestAddress(float timeToWait);
73 
74 protected:
75 
80  MAKRti::DtClock myClock;
82 
85 
88 
89 };
90 
91 inline MAKRti::DtInetAddr DtMulitcastDiscoveryMgr::hostAddr() const
92 {
93  return myHostId.first;
94 }
95 
96 #endif
97 

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)