![]() |
MAK RTIspy API Documentation for HLA 1.3
|
The DtRtiExecHandshakeProcessor class consists of filters for RtiExecHandshake messages for all three ports of a forwarder node. More...
Collaboration diagram for DtRtiExecHandshakeProcessor:Classes | |
| class | PendingRequest |
| Simple helper class to hold status of pending rtiexec Handshakes. More... | |
Public Types | |
| typedef bool(DtRtiExecHandshakeProcessor::* | HandshakeMsgHandlerMemberCb )(const DtInetAddrAndPort &src, const DtRtiExecHandshakeMsg &msg) |
| Pointer to member function callbacks used by the port filters. More... | |
| typedef bool(DtRtiExecHandshakeProcessor::* | DestinationProcessingMemberCb )(const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
Public Member Functions | |
| DtRtiExecHandshakeProcessor (std::shared_ptr< DtForwarderNode > parent) | |
| Default Ctor. More... | |
| virtual | ~DtRtiExecHandshakeProcessor () |
| Default Dtor. More... | |
| virtual bool | gotMsgToLanPort (const DtInetAddrAndPort &src, const DtRtiExecHandshakeMsg &msg) |
| Got Handshake Message from the IN Port to the LAN Port. More... | |
| virtual bool | gotMsgToOutPort (const DtInetAddrAndPort &src, const DtRtiExecHandshakeMsg &msg) |
| Got Handshake Message from the IN or LAN Port to the OUT Port. More... | |
| virtual bool | gotRtiExecConnect (const DtInetAddrAndPort &src, const DtRtiExecConnectMsg &msg) |
| Got rtiexec Connect Message from the IN or LAN Port. More... | |
| virtual bool | gotRtiExecDisconnect (const DtInetAddrAndPort &src, const DtRtiExecDisconnectMsg &msg) |
| Got rtiexec Disconnect Message from the IN or LAN Port. More... | |
| virtual bool | processExecHandshakeDestinations (const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
| Set forwarding destination list based on source (eg. More... | |
| virtual bool | ignoreExecHandshakeDestinations (const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
| Exec Handshakes messages are simply forwarded to all LAN destinations. More... | |
| virtual bool | ignoreExecConnectDestinations (const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
| Exec Connect messages are not forwarded by this processor, but they are also handled by the Forwarder Fault Processor which may forward them. More... | |
| virtual bool | isLocalGroupMember (const DtInetAddrAndPort &addr) |
| Aids to determine inbound and outbound connections to rtiexec. More... | |
| virtual DtInetAddrAndPort | locateGroupPortal (const DtInetAddrAndPort &addr) |
| virtual DtInetAddrAndPort | localNodeAddress () |
| Return parent node address. 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::set< unsigned int > | DtConnIdList |
| typedef std::map< unsigned int, PendingRequest > | DtConnIdToRequestMap |
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 (DtRtiExecHandshakeMsg::DtHandshakeStatus status, DtHandle src, DtHandle dest, const MAKRti::DtString &hostName, bool fullyCompliant, const DtInetAddrAndPort *addr=0) |
| Send a handshake Response based on aggregating all Local responses and all downstream WAN responses. More... | |
| virtual bool | processInToOutMsg (const DtInetAddrAndPort &src, const DtRtiExecHandshakeMsg &msg) |
| Got Handshake Message from the IN Port to the OUT Port. More... | |
| virtual bool | processLanToOutMsg (const DtInetAddrAndPort &src, const DtRtiExecHandshakeMsg &msg) |
| Got Handshake Message from the LAN Port to the OUT Port. More... | |
Protected Attributes | |
| std::shared_ptr< DtForwarderNode > | myParent |
| DtRtiExecHandshakeFilter * | myMsgToLanFilter |
| DtRtiExecHandshakeFilter * | myMsgToOutFilter |
| DtRtiExecConnectionFilter < DtRtiExecHandshakeProcessor > * | myRtiExecConnectionFilter |
| DtConnIdList | myLocalRtiExecConnIds |
| List of local rtiexec Candidates. More... | |
| DtConnIdToRequestMap | myPendingRequests |
| Map of outstanding rtiexec Requests to Responses. More... | |
| unsigned long | myConnectionIdOfLocalRtiExec |
| If valid, this represents the connID of a local exec. More... | |
| bool | myHaveConnectionIdOfLocalRtiExec |
The DtRtiExecHandshakeProcessor class consists of filters for RtiExecHandshake messages for all three ports of a forwarder node.
The processor pulls all handshake messages passing through the forwarder node out of the message stream, and determines the appropriate response. The processor then generates the response and sends it to all necessary destinations.
| typedef bool(DtRtiExecHandshakeProcessor::* DtRtiExecHandshakeProcessor::DestinationProcessingMemberCb)(const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
|
protected |
|
protected |
| typedef bool(DtRtiExecHandshakeProcessor::* DtRtiExecHandshakeProcessor::HandshakeMsgHandlerMemberCb)(const DtInetAddrAndPort &src, const DtRtiExecHandshakeMsg &msg) |
Pointer to member function callbacks used by the port filters.
| DtRtiExecHandshakeProcessor::DtRtiExecHandshakeProcessor | ( | std::shared_ptr< DtForwarderNode > | parent | ) |
Default Ctor.
|
virtual |
Default Dtor.
|
virtual |
Got Handshake Message from the IN Port to the LAN Port.
|
virtual |
Got Handshake Message from the IN or LAN Port to the OUT Port.
|
virtual |
Got rtiexec Connect Message from the IN or LAN Port.
|
virtual |
Got rtiexec Disconnect Message from the IN or LAN Port.
|
virtual |
Exec Connect messages are not forwarded by this processor, but they are also handled by the Forwarder Fault Processor which may forward them.
|
virtual |
Exec Handshakes messages are simply forwarded to all LAN destinations.
This method is just a dummy for the filter ctor.
|
virtual |
Aids to determine inbound and outbound connections to rtiexec.
|
virtual |
Return parent node address.
|
virtual |
|
static |
Connection loss callback.
|
protectedvirtual |
Connection loss callback.
|
virtual |
Set forwarding destination list based on source (eg.
which inlet the message was received on) and forwarder network configuration
|
protectedvirtual |
Got Handshake Message from the IN Port to the OUT Port.
|
protectedvirtual |
Got Handshake Message from the LAN Port to the OUT Port.
|
protectedvirtual |
Send a handshake Response based on aggregating all Local responses and all downstream WAN responses.
|
protected |
If valid, this represents the connID of a local exec.
|
protected |
|
protected |
List of local rtiexec Candidates.
|
protected |
|
protected |
|
protected |
|
protected |
Map of outstanding rtiexec Requests to Responses.
|
protected |