AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RemoteDebugClient.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_REMOTEDEBUGCLIENT_H
18 #define AGXNET_REMOTEDEBUGCLIENT_H
19 
20 #include <agxNet/RemoteDebugBase.h>
21 
22 #ifdef _MSC_VER
23 # pragma warning(push)
24 # pragma warning( disable: 4251 ) // 'agxNet::RemoteDebugClient::m_buffer' : class 'agx::Vector<T>' needs to have dll-interface to be used by clients of class 'agxNet::RemoteDebugClient'
25 #endif
26 
27 namespace agxSDK
28 {
29  class Simulation;
30 }
31 
32 namespace agxNet
33 {
34 
37  {
38  public:
43  RemoteDebugClient( const IPAddress& address );
44 
49  void receiveSimulation( agxSDK::Simulation *simulation );
50 
52  bool isWaitingForConnection() const;
53 
54  protected:
55 
56  bool connectToServer();
57 
58  virtual void waitForDataAndTransfer();
59  virtual bool waitForConnection();
60  virtual void handleConnectionDrop();
61 
62  virtual ~RemoteDebugClient();
63 
64  private:
65  IPAddress m_address;
66  agx::Vector<char> m_buffer;
67  bool m_isWaitingForConnection;
68 
69 
70  };
71 
72 }
73 
74 #ifdef _MSC_VER
75 # pragma warning(pop)
76 #endif
77 
78 #endif
a structure which holds IP address
Definition: Socket.h:107
#define AGXPHYSICS_EXPORT
Class for receiving serialized agxSDK::Simulation:s from remote host.
Base class for multi threaded transferring simulation between a server and a client using sockets...
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:121