MAK RTIspy API Documentation for HLA 1516
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtMulitcastDiscoveryMgr Class Reference

The DtMulitcastDiscoveryMgr can act as either a Requester or a Responder. More...

+ Collaboration diagram for DtMulitcastDiscoveryMgr:

List of all members.

Public Types

typedef std::pair
< MAKRti::DtInetAddr, unsigned
int > 
DtMcastResponderId
 Multicast Discovery Responders are identified by an <Address:ID> pair.

Public Member Functions

 DtMulitcastDiscoveryMgr (const DtRIDParameters *params, DtMulticastDiscoveryMsg::DtDiscoveryTarget targetType, bool isResponder=false, bool allowMultipleResponders=false)
 Constructor.
virtual ~DtMulitcastDiscoveryMgr ()
 Destructor.
virtual bool init ()
 Finish manager initialization.
virtual DtMcastResponderId discover ()
 Discover and return the address of the Multicast Discovery Responder (blocking) Returns zero if discovery failed.
virtual bool responderAlreadyExists ()
 Discover any existing responders and return true if a responder exists.
virtual bool tick (float timeToWait)
 Give the Manager time to respond to incoming Address Requests Returns true if at least one request was processed.
virtual MAKRti::DtInetAddr hostAddr () const

Protected Member Functions

virtual DtMcastResponderId requestAddress (float timeToWait)
 Request Multicast Discovery Responder Address from the network.

Protected Attributes

bool myIsResponder
bool myAllowMultipleResponders
DtMulticastDiscoveryMsg::DtDiscoveryTarget myDiscoveryTargetType
const DtRIDParametersmyParams
MAKRti::DtClock myClock
DtUdpMsgSocketmySocket
DtMcastResponderId myMcastResponderId
 The ID of the discovered RTI Forwarder.
DtMcastResponderId myHostId
 The ID of this process.

Private Member Functions

 DtMulitcastDiscoveryMgr ()
 Default Ctor - unimplemented.

Detailed Description

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.


Member Typedef Documentation

typedef std::pair< MAKRti::DtInetAddr, unsigned int > DtMulitcastDiscoveryMgr::DtMcastResponderId

Multicast Discovery Responders are identified by an <Address:ID> pair.


Constructor & Destructor Documentation

Default Ctor - unimplemented.

DtMulitcastDiscoveryMgr::DtMulitcastDiscoveryMgr ( const DtRIDParameters params,
DtMulticastDiscoveryMsg::DtDiscoveryTarget  targetType,
bool  isResponder = false,
bool  allowMultipleResponders = false 
)

Destructor.

References mySocket.


Member Function Documentation

MAKRti::DtInetAddr DtMulitcastDiscoveryMgr::hostAddr ( ) const [inline, virtual]

References myHostId.

Discover any existing responders and return true if a responder exists.

References discover().

bool DtMulitcastDiscoveryMgr::tick ( float  timeToWait) [virtual]

Member Data Documentation

Referenced by discover().

MAKRti::DtClock DtMulitcastDiscoveryMgr::myClock [protected]

Referenced by requestAddress(), and tick().

The ID of this process.

Referenced by discover(), DtMulitcastDiscoveryMgr(), hostAddr(), requestAddress(), and tick().

Referenced by discover(), requestAddress(), and tick().

The ID of the discovered RTI Forwarder.

Referenced by discover().


The documentation for this class was generated from the following files:

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)