![]() |
MAK RTIspy API Documentation for HLA 1516
|
The DtSmartForwardingProcessor class tracks Federate connections and filters the outgoing destination list for incoming messages based on their routing mask. More...
Collaboration diagram for DtSmartForwardingProcessor:Public Member Functions | |
| DtSmartForwardingProcessor (std::shared_ptr< DtForwarderNode > parent) | |
| Constructor. More... | |
| virtual | ~DtSmartForwardingProcessor () |
| Destructor. More... | |
| bool | federateJoined (const DtInetAddrAndPort &src, const DtNetJoinConfirmMsg *msg) |
| Join Msg received callback. More... | |
| bool | federateResigned (const DtInetAddrAndPort &src, const DtNetResignMsg *msg) |
| Resign Msg received callback. More... | |
| bool | processJoinResignDestinations (const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
| Set the forwarding destinations for Join & Resign messages based on the source (eg. More... | |
| bool | filterUpdateInterDestinations (const DtInetAddrAndPort &src, caddr_t msg, DtForwarderPort::DtAddressPortList &destinations) |
| Got an incoming Update or Interaction, so set destination list based on source (eg. More... | |
Static Public Member Functions | |
| static int | lostConnection (const MAKRti::DtString &connName, const MAKRti::DtString &hostName, unsigned int connID, const std::pair< DtInetAddrAndPort, DtInetAddrAndPort > &connAddr, void *usr) |
| Connection loss callback. More... | |
Protected Types | |
| typedef std::map< unsigned long, DtInetAddrAndPort > | DtIdToAddrMap |
| typedef std::map < DtInetAddrAndPort, DtBitMask > | DtAddrToIdMaskMap |
Protected Member Functions | |
| virtual int | lostConnection (const MAKRti::DtString &connName, const MAKRti::DtString &hostName, unsigned int connID, const std::pair< DtInetAddrAndPort, DtInetAddrAndPort > &connAddr) |
| Connection loss callback. More... | |
Protected Attributes | |
| std::shared_ptr< DtForwarderNode > | myParent |
| DtIdToAddrMap | myFedIdToAddressMap |
| DtAddrToIdMaskMap | myAddressToFedIdsMap |
| DtFederateJoinResignFilter < DtSmartForwardingProcessor > * | myJoinResignFilter |
| DtUpdateInterDestinationFilter < DtSmartForwardingProcessor > * | myUpdateInterFilter |
Private Member Functions | |
| DtSmartForwardingProcessor () | |
| Default constructor unimplemented. More... | |
| DtSmartForwardingProcessor (const DtSmartForwardingProcessor &) | |
| Copy CTOR unimplemented. More... | |
| DtSmartForwardingProcessor & | operator= (const DtSmartForwardingProcessor &orig) |
| assignment operator – Not Implemented More... | |
The DtSmartForwardingProcessor class tracks Federate connections and filters the outgoing destination list for incoming messages based on their routing mask.
|
protected |
|
protected |
|
private |
Default constructor unimplemented.
|
private |
Copy CTOR unimplemented.
| DtSmartForwardingProcessor::DtSmartForwardingProcessor | ( | std::shared_ptr< DtForwarderNode > | parent | ) |
Constructor.
|
virtual |
Destructor.
| bool DtSmartForwardingProcessor::federateJoined | ( | const DtInetAddrAndPort & | src, |
| const DtNetJoinConfirmMsg * | msg | ||
| ) |
Join Msg received callback.
| bool DtSmartForwardingProcessor::federateResigned | ( | const DtInetAddrAndPort & | src, |
| const DtNetResignMsg * | msg | ||
| ) |
Resign Msg received callback.
| bool DtSmartForwardingProcessor::filterUpdateInterDestinations | ( | const DtInetAddrAndPort & | src, |
| caddr_t | msg, | ||
| DtForwarderPort::DtAddressPortList & | destinations | ||
| ) |
Got an incoming Update or Interaction, so set destination list based on source (eg.
which inlet the message was received on) and forwarder network configuration, then pare down list based on bitmask in message.
|
static |
Connection loss callback.
|
protectedvirtual |
Connection loss callback.
|
private |
assignment operator – Not Implemented
| bool DtSmartForwardingProcessor::processJoinResignDestinations | ( | const DtInetAddrAndPort & | src, |
| DtForwarderPort::DtAddressPortList & | destinations | ||
| ) |
Set the forwarding destinations for Join & Resign messages based on the source (eg.
which inlet the message was received on) and forwarder network configuration.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |