this enumerates the state of the RTI, classified in the possible states
as this class is concerned DtNotConnected: either never connected, or disconnected and didn't reconnect in the timeout period. No reconnect is possible from this state. connect message will transition us to state DtConnectedAndRunning.
DtConnectedAndRunning: Everything's up and running, No reconnect is possible from this state. upon disconnect state transitions to DtWaitingForReconnect
DtWaitingForReconnect: rtiExec has a broken socket, if rtiExec reconnect is received prior to timeout it will transition to connectedAndRunning else it will inform all federates and transition to notConnected.
| Enumerator |
|---|
| DtNotConnected |
|
| DtConnectedAndRunning |
|
| DtWaitingForReconnect |
|
| DtReconnectFailed |
|
Copy and assignment unimplemented - there should never be any copies.
| DtRtiExecConnectionState::DtRtiExecConnectionState |
( |
bool |
reconnectEnabled, |
|
|
MAKRti::DtTime |
rtiExecReconnectTimeout |
|
) |
| |
| DtRtiExecConnectionState::~DtRtiExecConnectionState |
( |
| ) |
|
| bool DtRtiExecConnectionState::hasTimeElapsed |
( |
| ) |
const |
This will always return false unless the rtiExec has disconnected.
After the RtiDisconnects, this function returns whether the rtiExec disconnect happened more than RTI_rtiExecReconnectTimout seconds ago.
| MAKRti::DtString DtRtiExecConnectionState::hostName |
( |
| ) |
const |
Return the stored hostname for this exec conn.
| bool DtRtiExecConnectionState::isWaitingForReconnect |
( |
| ) |
const |
retrieve whether the exec has been disconnected and we're waiting for reconnect.d
| bool DtRtiExecConnectionState::noConnectionAvailable |
( |
| ) |
const |
is our state == DtNotConnected.
Useful in discarding incoming rtiExecDisconnect Messages from timed out stale exec connections.
| bool DtRtiExecConnectionState::reconnectEnabled |
( |
| ) |
const |
variable that concerns us: whether the RtiExec Reconnect ability is enabled.
| void DtRtiExecConnectionState::resetRtiExecConnID |
( |
| ) |
|
Reset state to not connected.
Should combine this function with available's analog, into a super state resetting multifunction!
| bool DtRtiExecConnectionState::rtiExecAvailable |
( |
| ) |
const |
retrieve whether the exec is available.
| bool DtRtiExecConnectionState::rtiExecConnected |
( |
unsigned int |
newConnectionID, |
|
|
const DtTcpMsgSocket * |
execSock, |
|
|
const MAKRti::DtString & |
hostName |
|
) |
| |
| unsigned int DtRtiExecConnectionState::rtiExecConnID |
( |
| ) |
const |
retrieve the connection ID of the rtiExec.
| bool DtRtiExecConnectionState::rtiExecDisconnected |
( |
| ) |
|
| bool DtRtiExecConnectionState::rtiExecDisconnectMsgReceived |
( |
| ) |
|
| bool DtRtiExecConnectionState::rtiExecIsLocalConnection |
( |
| ) |
const |
is the rtiexec connected directly to this forwarder or is it connected to a remote forwarder?
| bool DtRtiExecConnectionState::rtiExecReconnected |
( |
unsigned int |
newConnectionID, |
|
|
const DtTcpMsgSocket * |
execSock, |
|
|
const MAKRti::DtString & |
hostName |
|
) |
| |
retrieve the stored socket of the connected rtiExec.
Should really only be used to kill the old execSocket upon rtiExecDisconnectMsgRecv'd.
| bool DtRtiExecConnectionState::rtiExecTimedOutReconnect |
( |
| ) |
|
| bool DtRtiExecConnectionState::testRtiExecConnectionStatus |
( |
| ) |
|
Periodically ping the rtiexec connection to ensure that it is alive Returns false if there is an rtiexec connection error.
| MAKRti::DtString DtRtiExecConnectionState::myExecHostname |
|
protected |
| MAKRti::DtClock DtRtiExecConnectionState::myPingTimer |
|
protected |
| bool DtRtiExecConnectionState::myReconnectEnabled |
|
protected |
| bool DtRtiExecConnectionState::myRtiExecAvailable |
|
protected |
In the case of an RtiExec reconnect, the DtRtiExecTrackingFilter will change the.
connection ID of the known rtiExec. As far as I know, only the DtRtiExecTrackingFilter object (which maybe should be refactored to the singleton pattern) should be the only object that accesses this function.
| unsigned int DtRtiExecConnectionState::myRtiExecConnID |
|
protected |
| bool DtRtiExecConnectionState::myRtiExecIsLocallyConnected |
|
protected |
| MAKRti::DtTime DtRtiExecConnectionState::myRtiExecReconnectTimeout |
|
protected |
| MAKRti::DtClock DtRtiExecConnectionState::myTimer |
|
protected |
The documentation for this class was generated from the following file: