AGX Dynamics  2.35.0.1
RemoteDebugServer.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. 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 
51 
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 }
Base class for multi threaded transferring simulation between a server and a client using sockets.
Class for sending serialized agxSDK::Simulation over to a client.
virtual bool waitForConnection()
virtual void waitForDataAndTransfer()
bool getEnableCompression() const
void setEnableFrameSyncronization(bool flag)
Specifies if server should wait for client to send ready to recieve before sending new package.
void setEnableCompression(bool flag)
Enable/disable compression of transmitted data.
bool getEnableFrameSynchronizaton() const
RemoteDebugServer(uint16_t port)
Constructor.
Containins classes for sending/reading data over sockets as well as compression functionality.
Definition: MacUtil.h:23