AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RemoteDebugServer.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXNET_REMOTEDEBUGSERVER_H
18 #define AGXNET_REMOTEDEBUGSERVER_H
19 
20 #include <agxNet/RemoteDebugBase.h>
21 
22 namespace agxNet
23 {
24 
27  {
28  public:
29 
34  RemoteDebugServer( uint16_t port );
35 
40  void setEnableCompression(bool flag);
41 
45  bool getEnableCompression() const;
46 
47 
51  bool getEnableFrameSynchronizaton() const;
52 
58  void setEnableFrameSyncronization(bool flag);
59 
60 
61  protected:
62 
63  virtual void waitForDataAndTransfer();
64  virtual bool waitForConnection();
65 
66  virtual ~RemoteDebugServer();
67 
68  private:
69  TCPServerSocketRef m_serverSocket;
70  uint16_t m_port;
71  bool m_useCompression;
72  agx::Vector<char> m_buffer;
73  bool m_enableFrameSyncronization;
74 
75  };
76 
77 }
78 #endif
bool getEnableFrameSynchronizaton() const
virtual void waitForDataAndTransfer()
void setEnableFrameSyncronization(bool flag)
Specifies if server should wait for client to send ready to recieve before sending new package...
virtual bool waitForConnection()
bool getEnableCompression() const
Class for sending serialized agxSDK::Simulation over to a client.
void setEnableCompression(bool flag)
Enable/disable compression of transmitted data.
Base class for multi threaded transferring simulation between a server and a client using sockets...
RemoteDebugServer(uint16_t port)
Constructor.