![]() |
VR-Forces 4.6 Class Documentation
|
The class responsible for restarting remote displays that have disconnected unexpectedly. More...
Public Types | |
| typedef std::list < DtThreadedDisplayReconnector * > | DtThreadedDisplayReconnectors |
| A list of disconnected remote displays, since it is possible that more than one remote display might fail. | |
Public Member Functions | |
| DtDeRemoteDisplayReconnector (DtDe &de, DtDeCommunicator &deCommunicator) | |
| CTOR. | |
| virtual | ~DtDeRemoteDisplayReconnector () |
| DTOR. | |
| virtual void | tick () |
| Tick the reconnector. | |
| virtual void | addLostRemoteDisplay (const std::string &ipAddr, int port, const DtDisplayConfiguration &displayConfig) |
| Add a disconnected remote display to our list of remote displays. | |
| virtual void | addLostRemoteDisplay (DtTcpMessageClient *client) |
| Add a disconnected remote display to our list of remote displays given a message client. | |
| virtual void | removeLostRemoteDisplay (const std::string &ipAddr, int port) |
| Remove a remote display from the lost remote display list. | |
| virtual void | setRetryPeriod (double period) |
| Set/get the period between reconnect retries. | |
| virtual double | retryPeriod () const |
Protected Attributes | |
| DtDe & | myDe |
| DtDeCommunicator & | myDeCommunicator |
| DtThreadedDisplayReconnectors | myDtThreadedDisplayReconnectors |
| double | myRetryPeriod |
Private Member Functions | |
| DtDeRemoteDisplayReconnector () | |
| default CTOR. Unimplemented | |
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.
| 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 |
|
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 |