VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDeRemoteDisplayReconnector.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
15 
16 #include <string>
17 #include <list>
18 
19 namespace makVrv
20 {
21  class DtDe;
22  class DtDisplayConfiguration;
23  class DtDeCommunicator;
24  class DtTcpMessageClient;
25  class DtThreadedDisplayReconnector;
26 
35  {
36  public:
37 
39  DtDeRemoteDisplayReconnector(DtDe& de, DtDeCommunicator& deCommunicator);
40 
43  typedef std::list<DtThreadedDisplayReconnector*> DtThreadedDisplayReconnectors;
44 
47 
53  virtual void tick();
54 
56  virtual void setRetryPeriod( double period );
59  virtual double retryPeriod() const;
61 
63  virtual void addLostRemoteDisplay( const std::string& ipAddr, int port,
64  const DtDisplayConfiguration& displayConfig );
65 
70  virtual void addLostRemoteDisplay( DtTcpMessageClient* client );
71 
73  virtual void removeLostRemoteDisplay( const std::string& ipAddr, int port );
74 
75  private:
76 
79 
80  protected:
81 
85  double myRetryPeriod;
86  };
87 }
88 
89 
std::list< DtThreadedDisplayReconnector * > DtThreadedDisplayReconnectors
A list of disconnected remote displays, since it is possible that more than one remote display might ...
Definition: DtDeRemoteDisplayReconnector.h:43
A remote TCP client that the TCP server communicates with.
Definition: DtTcpMessageClient.h:26
DtDeCommunicator & myDeCommunicator
Definition: DtDeRemoteDisplayReconnector.h:83
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
This owns a list of window configurations.
Definition: DtDisplayConfiguration.h:47
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.
Definition: DtDeRemoteDisplayReconnector.h:34
DtDe & myDe
Definition: DtDeRemoteDisplayReconnector.h:82
Contains makVrv::DtDisplayConfiguration class.
The class responsible for managing communication between multiple DtDe instances typically running in...
Definition: DtDeCommunicator.h:31
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
DtThreadedDisplayReconnectors myDtThreadedDisplayReconnectors
Definition: DtDeRemoteDisplayReconnector.h:84
double myRetryPeriod
Definition: DtDeRemoteDisplayReconnector.h:85
Contains DLL export macros.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)