AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
RemoteDebugServer.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
20
21namespace agxNet
22{
23
26 {
27 public:
28
33 RemoteDebugServer( uint16_t port );
34
39 void setEnableCompression(bool flag);
40
45
46
51
58
59
60 protected:
61
62 virtual void waitForDataAndTransfer();
63 virtual bool waitForConnection();
64
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.
Templated vector class.
Definition agx/Vector.h:53
Containins classes for sending/reading data over sockets as well as compression functionality.
Definition MacUtil.h:23