18 #ifndef AGX_REMOTESOLVER_H 19 #define AGX_REMOTESOLVER_H 21 #include <agx/config/AGX_USE_WEBSOCKETS.h> 27 #if AGX_USE_WEBSOCKETS() 31 namespace agxSDK {
class Simulation; }
42 RemoteSolver(
UInt16 tcpSocketPort = 1906,
UInt16 webSocketPort = 1907);
47 agx::UInt16 getWebPort()
const {
return m_webPort; }
48 agx::UInt16 getTcpPort()
const {
return m_tcpPort; }
53 virtual ~RemoteSolver();
60 void clientConnected(agxNet::WebSocket* client);
62 void clientDisconnected(agxNet::WebSocket* client);
64 void messageReceived(
agx::UInt8* payload,
size_t size);
67 void someClientDisconnected();
68 bool writeReadCycle(agxData::Frame* frame);
81 agxNet::WebSocketServerRef m_webSocketServer;
82 agxNet::WebSocketRef m_webSocketClient;
void AGXPHYSICS_EXPORT init()
Initialize agx.
#define AGXPHYSICS_EXPORT
agx::ref_ptr< Frame > FrameRef
#define AGX_DECLARE_POINTER_TYPES(type)
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()