![]() |
MAK RTIspy API Documentation for HLA 1516
|
The DtMulitcastDiscoveryMgr can act as either a Requester or a Responder. More...
Collaboration diagram for DtMulitcastDiscoveryMgr:Public Types | |
| typedef std::pair < MAKRti::DtInetAddr, unsigned int > | DtMcastResponderId |
| Multicast Discovery Responders are identified by an <Address:ID> pair. More... | |
Public Member Functions | |
| DtMulitcastDiscoveryMgr (const DtRIDParameters *params, DtMulticastDiscoveryMsg::DtDiscoveryTarget targetType, bool isResponder=false, bool allowMultipleResponders=false) | |
| Constructor. More... | |
| virtual | ~DtMulitcastDiscoveryMgr () |
| Destructor. More... | |
| virtual bool | init () |
| Finish manager initialization. More... | |
| virtual DtMcastResponderId | discover () |
| Discover and return the address of the Multicast Discovery Responder (blocking) Returns zero if discovery failed. More... | |
| virtual bool | responderAlreadyExists () |
| Discover any existing responders and return true if a responder exists. More... | |
| virtual bool | tick (float timeToWait) |
| Give the Manager time to respond to incoming Address Requests Returns true if at least one request was processed. More... | |
| virtual MAKRti::DtInetAddr | hostAddr () const |
Protected Member Functions | |
| virtual DtMcastResponderId | requestAddress (float timeToWait) |
| Request Multicast Discovery Responder Address from the network. More... | |
Protected Attributes | |
| bool | myIsResponder |
| bool | myAllowMultipleResponders |
| DtMulticastDiscoveryMsg::DtDiscoveryTarget | myDiscoveryTargetType |
| const DtRIDParameters * | myParams |
| MAKRti::DtClock | myClock |
| DtUdpMsgSocket * | mySocket |
| DtMcastResponderId | myMcastResponderId |
| The ID of the discovered RTI Forwarder. More... | |
| DtMcastResponderId | myHostId |
| The ID of this process. More... | |
Private Member Functions | |
| DtMulitcastDiscoveryMgr () | |
| Default Ctor - unimplemented. More... | |
The DtMulitcastDiscoveryMgr can act as either a Requester or a Responder.
As a Requester, the DtMulitcastDiscoveryMgr discovers the host address of a Responder, if any are active. As a Responder, the DtMulitcastDiscoveryMgr responds to MulticastDiscovery Requests with its host address, and if requested it ensures that only one responder is active at a given time.
| typedef std::pair< MAKRti::DtInetAddr, unsigned int > DtMulitcastDiscoveryMgr::DtMcastResponderId |
Multicast Discovery Responders are identified by an <Address:ID> pair.
|
private |
Default Ctor - unimplemented.
| DtMulitcastDiscoveryMgr::DtMulitcastDiscoveryMgr | ( | const DtRIDParameters * | params, |
| DtMulticastDiscoveryMsg::DtDiscoveryTarget | targetType, | ||
| bool | isResponder = false, |
||
| bool | allowMultipleResponders = false |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Discover and return the address of the Multicast Discovery Responder (blocking) Returns zero if discovery failed.
|
inlinevirtual |
References myHostId.
|
virtual |
Finish manager initialization.
|
protectedvirtual |
Request Multicast Discovery Responder Address from the network.
|
virtual |
Discover any existing responders and return true if a responder exists.
|
virtual |
Give the Manager time to respond to incoming Address Requests Returns true if at least one request was processed.
|
protected |
|
protected |
|
protected |
|
protected |
The ID of this process.
Referenced by hostAddr().
|
protected |
|
protected |
The ID of the discovered RTI Forwarder.
|
protected |
|
protected |