MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
)

Constructor.

virtual DtMulitcastDiscoveryMgr::~DtMulitcastDiscoveryMgr ( )
virtual

Destructor.

Member Function Documentation

virtual DtMcastResponderId DtMulitcastDiscoveryMgr::discover ( )
virtual

Discover and return the address of the Multicast Discovery Responder (blocking) Returns zero if discovery failed.

MAKRti::DtInetAddr DtMulitcastDiscoveryMgr::hostAddr ( ) const
inlinevirtual

References myHostId.

virtual bool DtMulitcastDiscoveryMgr::init ( )
virtual

Finish manager initialization.

virtual DtMcastResponderId DtMulitcastDiscoveryMgr::requestAddress ( float  timeToWait)
protectedvirtual

Request Multicast Discovery Responder Address from the network.

virtual bool DtMulitcastDiscoveryMgr::responderAlreadyExists ( )
virtual

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

virtual bool DtMulitcastDiscoveryMgr::tick ( float  timeToWait)
virtual

Give the Manager time to respond to incoming Address Requests Returns true if at least one request was processed.

Member Data Documentation

bool DtMulitcastDiscoveryMgr::myAllowMultipleResponders
protected
MAKRti::DtClock DtMulitcastDiscoveryMgr::myClock
protected
DtMulticastDiscoveryMsg::DtDiscoveryTarget DtMulitcastDiscoveryMgr::myDiscoveryTargetType
protected
DtMcastResponderId DtMulitcastDiscoveryMgr::myHostId
protected

The ID of this process.

Referenced by hostAddr().

bool DtMulitcastDiscoveryMgr::myIsResponder
protected
DtMcastResponderId DtMulitcastDiscoveryMgr::myMcastResponderId
protected

The ID of the discovered RTI Forwarder.

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

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

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)