![]() |
VR-Forces 5.0.3 Developer's Guide
|
The class responsible for restarting remote displays that have disconnected unexpectedly. If a connection to a remote display is lost, it will attempt to reconnect to the same ip address and port, every retryPeriod seconds (default is 5.s). If reconnected it will also provide the display configuration that was in use when the remote display disconnected. It uses an instance of DtThreadedDisplayReconnector for each disconnected remote display to detect the RDE startup and create a connection to it.
Public Types | |
| typedef std::list < DtThreadedDisplayReconnector * > | DtThreadedDisplayReconnectors |
Public Member Functions | |
| DtDeRemoteDisplayReconnector (DtDe &de, DtDeCommunicator &deCommunicator) | |
| virtual | ~DtDeRemoteDisplayReconnector () |
| virtual void | tick () |
| virtual void | addLostRemoteDisplay (const std::string &ipAddr, int port, const DtDisplayConfiguration &displayConfig) |
| virtual void | addLostRemoteDisplay (DtTcpMessageClient *client) |
| virtual void | removeLostRemoteDisplay (const std::string &ipAddr, int port) |
| virtual void | setRetryPeriod (double period) |
| virtual double | retryPeriod () const |
Protected Attributes | |
| DtDe & | myDe |
| DtDeCommunicator & | myDeCommunicator |
| DtThreadedDisplayReconnectors | myDtThreadedDisplayReconnectors |
| double | myRetryPeriod |
Private Member Functions | |
| DtDeRemoteDisplayReconnector () | |
| typedef std::list<DtThreadedDisplayReconnector*> makVrv::DtDeRemoteDisplayReconnector::DtThreadedDisplayReconnectors |
A list of disconnected remote displays, since it is possible that more than one remote display might fail. Note that only one reconnect can occur in a retryPeriod.
| makVrv::DtDeRemoteDisplayReconnector::DtDeRemoteDisplayReconnector | ( | DtDe & | de, |
| DtDeCommunicator & | deCommunicator | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
private |
default CTOR. Unimplemented
|
virtual |
Tick the reconnector. If the list of disconnected remotes isn't empty and retry period seconds have elapsed since the last attempt, this will try to reconnect a remote display. If there are multiple remote displays on the list, it will try to reconnect each in turn until one connection succeeds and then wait for the next retry period.
|
virtual |
Set/get the period between reconnect retries. The default is 5. seconds.
|
virtual |
Set/get the period between reconnect retries. The default is 5. seconds.
|
virtual |
Add a disconnected remote display to our list of remote displays.
|
virtual |
Add a disconnected remote display to our list of remote displays given a message client. This version does all the work of figuring out what the ipAddr, port, and display config for the client actually were, and then calls the other form of addLostRemoteDisplay()
|
virtual |
Remove a remote display from the lost remote display list.
|
protected |
|
protected |
|
protected |
|
protected |