VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
33  {
34  public:
35 
37  DtDeRemoteDisplayReconnector(DtDe& de, DtDeCommunicator& deCommunicator);
38 
40  typedef struct
41  {
42  std::string ipAddr;
43  int port;
44  } RemoteAddress;
45 
48  typedef struct
49  {
53 
56  typedef std::list<LostRemoteDisplayRecord> LostRemoteDisplayRecords;
57 
60 
66  virtual void tick();
67 
69 
70 
71  virtual void setRetryPeriod( double period );
72  virtual double retryPeriod() const;
74 
76  virtual void addLostRemoteDisplay( const std::string& ipAddr, int port,
77  const DtDisplayConfiguration& displayConfig );
78 
83  virtual void addLostRemoteDisplay( DtTcpMessageClient* client );
84 
86  virtual void removeLostRemoteDisplay( const std::string& ipAddr, int port );
87 
88  private:
89 
92 
93  protected:
94 
98  double myLastRetry;
99  double myRetryPeriod;
100  };
101 }
102 
103 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)