88 void handlePreloadScript();
89 void handleSetTimeStep();
90 void handleStepInput();
91 void handleInitInput();
94 void sendReplyPacket();
98 bool m_useCompression;
102 Header::Mode m_currentInstruction;
103 Header::Mode m_replyInstruction;
#define AGXPHYSICS_EXPORT
Base class for multi threaded transferring simulation between a server and a client using sockets.
Class for sending serialized agxSDK::Simulation over to a client.
void setScriptMode(ScriptMode)
void shutdown()
Shutdown the communication threads, will cause this client to be non-usable any more.
const agx::String & getFilename()
virtual ~CoSimulationServer()
bool obtainInitOutputs(agxSDK::Simulation *simulation)
void setInstructionStatus(Header::Mode mode, const agx::String &message)
void run()
This method is invoked by start.
void dropConnection(bool shouldShutdown) override
Drop the connection to the remote host and wait for a new one.
virtual bool waitForConnection()
bool applyInitInputs(agxSDK::Simulation *simulation)
bool getEnableCompression() const
Header::Mode receiveInstructions(agxSDK::Simulation *simulation)
ScriptMode getScriptMode() const
void setEnableCompression(bool flag)
Enable/disable compression of transmitted data.
CoSimulationServer(uint16_t port)
Constructor.
virtual void waitForDataAndTransfer()
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Basic wrapper class aroud std::thread.
Block synchronization primitive.
Base class providing referencing counted objects.
The Timer class permits timing execution speed with the same refinement as the built in hardware cloc...
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...