VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtThreadedDisplayReconnector.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 
18 
19 #include <vlutil/vlRunnable.h>
20 
21 #include <string>
22 #include <list>
23 
24 class DtThread;
25 
26 namespace makVrv
27 {
28  class DtDe;
29  class DtDisplayConfiguration;
30  class DtDeCommunicator;
31 
38  {
39  private:
42 
43  public:
45  DtThreadedDisplayReconnector( DtDe& de, DtDeCommunicator& deCommunicator, double retryPeriod );
46 
49 
52  virtual void addLostClient( const std::string& ipAddr, int port,
54 
56  const std::string& ipAddr() const;
58 
60  int port() const;
61 
65 
70 
72  virtual void run();
73 
74 
75  protected:
78  std::string myIpAddr;
79  int myPort;
82  DtThread* myReconnectThread;
83  double myLastRetry;
84  double myRetryPeriod;
86  };
87 }
88 
89 
DtDisplayConfiguration myDisplayConfig
Definition: DtThreadedDisplayReconnector.h:80
DtThread * myReconnectThread
Definition: DtThreadedDisplayReconnector.h:82
std::string myIpAddr
Definition: DtThreadedDisplayReconnector.h:78
double myRetryPeriod
Definition: DtThreadedDisplayReconnector.h:84
DtLocklessQueue is a thread safe queue for single reader/single writer.
Definition: DtLocklessQueue.h:21
DtDe & myDe
Definition: DtThreadedDisplayReconnector.h:76
DtLocklessQueue< DtTcpMessageClient * > * myClientReturnQueue
Definition: DtThreadedDisplayReconnector.h:81
const DtDisplayConfiguration & displayConfig() const
Return the display configuration (cached when addLostClient was called) to send to the newly connecte...
virtual void run()
This is what runs in the thread to attempt to connect each retry period.
virtual ~DtThreadedDisplayReconnector()
Destructor. Stops/Deletes the thread, deletes the lockless queue.
This owns a list of window configurations.
Definition: DtDisplayConfiguration.h:47
const std::string & ipAddr() const
Return the ip address of the RDE to try to reconnect to.
Contains makVrv::DtDisplayConfiguration class.
The class responsible for managing communication between multiple DtDe instances typically running in...
Definition: DtDeCommunicator.h:31
bool myReconnected
Definition: DtThreadedDisplayReconnector.h:85
DtThreadedDisplayReconnector()
(Unimplemented) Default CTOR
The class responsible for restarting a specific disconnected remote display.
Definition: DtThreadedDisplayReconnector.h:37
virtual void addLostClient(const std::string &ipAddr, int port, const DtDisplayConfiguration &displayConfig)
DtDeRemoteDisplayConnector calls this to start a thread and save all the information we need about th...
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
int myPort
Definition: DtThreadedDisplayReconnector.h:79
double myLastRetry
Definition: DtThreadedDisplayReconnector.h:83
DtDeCommunicator & myDeCommunicator
Definition: DtThreadedDisplayReconnector.h:77
int port() const
Return the port of the RDE to try to reconnect to.
Contains DLL export macros.
DtLocklessQueue< DtTcpMessageClient * > * getQueue()
Get a pointer to the lockless queue.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)