AGX Dynamics  2.37.2.0
RemoteDebugServer.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. 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 #pragma once
18 
19 #include <agxNet/RemoteDebugBase.h>
20 
21 namespace agxNet
22 {
23 
26  {
27  public:
28 
33  RemoteDebugServer( uint16_t port );
34 
39  void setEnableCompression(bool flag);
40 
44  bool getEnableCompression() const;
45 
46 
50  bool getEnableFrameSynchronizaton() const;
51 
57  void setEnableFrameSyncronization(bool flag);
58 
59 
60  protected:
61 
62  virtual void waitForDataAndTransfer();
63  virtual bool waitForConnection();
64 
65  virtual ~RemoteDebugServer();
66 
67  private:
68  TCPServerSocketRef m_serverSocket;
69  uint16_t m_port;
70  bool m_useCompression;
71  agx::Vector<char> m_buffer;
72  bool m_enableFrameSyncronization;
73 
74  };
75 
76 }
Containins classes for sending/reading data over sockets as well as compression functionality.
Definition: MacUtil.h:22
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()
Class for sending serialized agxSDK::Simulation over to a client.
bool getEnableFrameSynchronizaton() const
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.
bool getEnableCompression() const