20 #include <agx/config/AGX_USE_WEBSOCKETS.h>
22 #if AGX_USE_WEBSOCKETS()
54 virtual ~RemoteJournalConnector();
59 void connectToControlChannel();
65 void sendPlayMessage();
73 return s_defaultMutex;
79 virtual bool isRunning() = 0;
89 virtual void onRemoteViewerAttached() {};
94 virtual void onSimulationExit() {};
97 void connectToJournalSocket();
99 void onControlChannelMessage(agxNet::WebSocket *,
UInt8 *data,
size_t numBytes);
100 void onDisconnected(agxNet::WebSocket* disconnectedSocket);
102 void runServerSocketThread();
106 agxNet::WebSocketServerRef m_serverSocket;
107 agxNet::WebSocketRef m_controlChannelSocket;
108 agxNet::WebSocketRef m_journalTrackSocket;
109 agxNet::WebSocketFrameReaderRef m_journalTrackReader;
113 UInt16 m_controlChannelPort;
114 UInt16 m_journalSocketPort;
115 std::atomic<bool> m_serverSocketShouldStop;
116 std::thread m_serverSocketThread;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Containins classes for sending/reading data over sockets as well as compression functionality.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.