![]() |
MAK RTIspy API Documentation for HLA 1516
|
The DtForwarderPingProcessor class consists of filters for ForwarderPing messages for forwarder nodes. More...
Collaboration diagram for DtForwarderPingProcessor:Classes | |
| class | PendingRequest |
| Simple helper class to hold status of pending Pings. More... | |
Public Types | |
| typedef bool(DtForwarderPingProcessor::* | PingMsgHandlerMemberCb )(const DtInetAddrAndPort &src, const DtForwarderPingMsg &msg) |
| Pointer to member function callbacks used by the port filters. More... | |
| typedef bool(DtForwarderPingProcessor::* | DestinationProcessingMemberCb )(const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
Public Member Functions | |
| DtForwarderPingProcessor (std::shared_ptr< DtForwarderNode > parent) | |
| Default Ctor. More... | |
| virtual | ~DtForwarderPingProcessor () |
| Default Dtor. More... | |
| virtual bool | gotMsgToLanPort (const DtInetAddrAndPort &src, const DtForwarderPingMsg &msg) |
| Got Ping Message at the IN Port, drop the message at IN to LAN processor. More... | |
| virtual bool | gotMsgToOutPort (const DtInetAddrAndPort &src, const DtForwarderPingMsg &msg) |
| Got Ping Message from the IN or LAN Port to the OUT Port. More... | |
| virtual bool | processPingMsgDestinations (const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
| Set forwarding destination list based on source (eg. More... | |
| virtual bool | ignorePingMsgToLan (const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
| Ping messages are never forwarded out the LAN port and will be filtered out by gotMsgToLanPort anyway, so there's no destination processing necessary. 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, PendingRequest > | DtDestToRequestMap |
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... | |
| virtual void | sendResponseMsg (unsigned long target, DtForwarderPingMsg::DtPingStatus status, const DtInetAddrAndPort *addr=0) |
| Send a ping Response based on aggregating all Local responses and all downstream WAN responses. More... | |
| virtual bool | processInToOutMsg (const DtInetAddrAndPort &src, const DtForwarderPingMsg &msg) |
| Got ping Message from the IN Port to the OUT Port. More... | |
| virtual bool | processLanToOutMsg (const DtInetAddrAndPort &src, const DtForwarderPingMsg &msg) |
| Got ping Message from the LAN Port to the OUT Port. More... | |
Protected Attributes | |
| std::shared_ptr< DtForwarderNode > | myParent |
| DtForwarderPingFilter * | myMsgToLanFilter |
| DtForwarderPingFilter * | myMsgToOutFilter |
| DtDestToRequestMap | myPendingRequests |
| Map of outstanding Ping Requests to Responses. More... | |
The DtForwarderPingProcessor class consists of filters for ForwarderPing messages for forwarder nodes.
The Ping algorithm allows a node or an RTI Exec to determine whether a path exists to a specified downstream node (NOTE: - currently does not handle pinging federates, but this could be added)
| typedef bool(DtForwarderPingProcessor::* DtForwarderPingProcessor::DestinationProcessingMemberCb)(const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
|
protected |
| typedef bool(DtForwarderPingProcessor::* DtForwarderPingProcessor::PingMsgHandlerMemberCb)(const DtInetAddrAndPort &src, const DtForwarderPingMsg &msg) |
Pointer to member function callbacks used by the port filters.
| DtForwarderPingProcessor::DtForwarderPingProcessor | ( | std::shared_ptr< DtForwarderNode > | parent | ) |
Default Ctor.
|
virtual |
Default Dtor.
|
virtual |
Got Ping Message at the IN Port, drop the message at IN to LAN processor.
|
virtual |
Got Ping Message from the IN or LAN Port to the OUT Port.
|
virtual |
Ping messages are never forwarded out the LAN port and will be filtered out by gotMsgToLanPort anyway, so there's no destination processing necessary.
This method is just a dummy for the filter ctor.
|
static |
Connection loss callback.
|
protectedvirtual |
Connection loss callback.
|
protectedvirtual |
Got ping Message from the IN Port to the OUT Port.
|
protectedvirtual |
Got ping Message from the LAN Port to the OUT Port.
|
virtual |
Set forwarding destination list based on source (eg.
which inlet the message was received on) and forwarder network configuration
|
protectedvirtual |
Send a ping Response based on aggregating all Local responses and all downstream WAN responses.
|
protected |
|
protected |
|
protected |
|
protected |
Map of outstanding Ping Requests to Responses.