AGX Dynamics  2.37.2.0
RemoteDebugClient.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 #ifdef _MSC_VER
22 # pragma warning(push)
23 # 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'
24 #endif
25 
26 namespace agxSDK
27 {
28  class Simulation;
29 }
30 
31 namespace agxNet
32 {
33 
36  {
37  public:
42  RemoteDebugClient( const IPAddress& address );
43 
48  void receiveSimulation( agxSDK::Simulation *simulation );
49 
51  bool isWaitingForConnection() const;
52 
53  protected:
54 
55  bool connectToServer();
56 
57  virtual void waitForDataAndTransfer();
58  virtual bool waitForConnection();
59  virtual void handleConnectionDrop();
60 
61  virtual ~RemoteDebugClient();
62 
63  private:
64  IPAddress m_address;
65  agx::Vector<char> m_buffer;
66  bool m_isWaitingForConnection;
67 
68 
69  };
70 
71 }
72 
73 #ifdef _MSC_VER
74 # pragma warning(pop)
75 #endif
76 
a structure which holds IP address
Definition: Socket.h:116
Containins classes for sending/reading data over sockets as well as compression functionality.
Definition: MacUtil.h:22
#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:126
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30