MAK RTIspy API Documentation for HLA 1516
List of all members | 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:

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

DtMulitcastDiscoveryMgr::DtMulitcastDiscoveryMgr ( )
private

Default Ctor - unimplemented.

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

Destructor.

References mySocket.

Member Function Documentation

DtMulitcastDiscoveryMgr::DtMcastResponderId DtMulitcastDiscoveryMgr::discover ( )
virtual
MAKRti::DtInetAddr DtMulitcastDiscoveryMgr::hostAddr ( ) const
inlinevirtual

References myHostId.

bool DtMulitcastDiscoveryMgr::init ( )
virtual
DtMulitcastDiscoveryMgr::DtMcastResponderId DtMulitcastDiscoveryMgr::requestAddress ( float  timeToWait)
protectedvirtual
bool DtMulitcastDiscoveryMgr::responderAlreadyExists ( )
virtual

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

References discover().

bool DtMulitcastDiscoveryMgr::tick ( float  timeToWait)
virtual

Member Data Documentation

bool DtMulitcastDiscoveryMgr::myAllowMultipleResponders
protected

Referenced by discover().

MAKRti::DtClock DtMulitcastDiscoveryMgr::myClock
protected
DtMulticastDiscoveryMsg::DtDiscoveryTarget DtMulitcastDiscoveryMgr::myDiscoveryTargetType
protected

Referenced by requestAddress(), and tick().

DtMcastResponderId DtMulitcastDiscoveryMgr::myHostId
protected

The ID of this process.

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

bool DtMulitcastDiscoveryMgr::myIsResponder
protected

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

DtMcastResponderId DtMulitcastDiscoveryMgr::myMcastResponderId
protected

The ID of the discovered RTI Forwarder.

Referenced by discover().

const DtRIDParameters* DtMulitcastDiscoveryMgr::myParams
protected
DtUdpMsgSocket* DtMulitcastDiscoveryMgr::mySocket
protected

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

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)