MAK RTIspy API Documentation for HLA 1.3
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
RTI
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
33
class
DT_DLL_LRC
DtMulitcastDiscoveryMgr
34
{
35
private
:
37
DtMulitcastDiscoveryMgr
();
38
39
public
:
41
typedef
std::pair< MAKRti::DtInetAddr, unsigned int >
DtMcastResponderId
;
42
43
45
DtMulitcastDiscoveryMgr
(
const
DtRIDParameters
* params,
46
DtMulticastDiscoveryMsg::DtDiscoveryTarget
targetType,
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
76
bool
myIsResponder
;
77
bool
myAllowMultipleResponders
;
78
DtMulticastDiscoveryMsg::DtDiscoveryTarget
myDiscoveryTargetType
;
79
const
DtRIDParameters
*
myParams
;
80
MAKRti::DtClock
myClock
;
81
DtUdpMsgSocket
*
mySocket
;
82
84
DtMcastResponderId
myMcastResponderId
;
85
87
DtMcastResponderId
myHostId
;
88
89
};
90
91
inline
MAKRti::DtInetAddr
DtMulitcastDiscoveryMgr::hostAddr
()
const
92
{
93
return
myHostId
.first;
94
}
95
96
#endif
97
Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (
www.mak.com
)