AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
RemoteDebugClient.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
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
26namespace agxSDK
27{
28 class Simulation;
29}
30
31namespace agxNet
32{
33
36 {
37 public:
42 RemoteDebugClient( const IPAddress& address );
43
49
52
53 protected:
54
56
57 virtual void waitForDataAndTransfer();
58 virtual bool waitForConnection();
59 virtual void handleConnectionDrop();
60
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
#define AGXPHYSICS_EXPORT
a structure which holds IP address
Definition Socket.h:117
Base class for multi threaded transferring simulation between a server and a client using sockets.
Class for receiving serialized agxSDK::Simulation:s from remote host.
RemoteDebugClient(const IPAddress &address)
Constructor.
void receiveSimulation(agxSDK::Simulation *simulation)
Take a received Simulation, and add the data into the specified simulation.
virtual void waitForDataAndTransfer()
virtual bool waitForConnection()
bool isWaitingForConnection() const
Is the client still waiting for connection?
virtual void handleConnectionDrop()
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition Simulation.h:126
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
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition Constraint.h:31