19 # pragma warning(push)
20 # pragma warning( disable : 4290)
21 # pragma warning( disable: 4275 )
43 Header() : numBytes(0), mode(0), compressed(false) {}
57 # pragma warning(push)
58 # pragma warning( disable : 4250)
120 size_t sendData(
const uint8_t* data,
size_t numBytes );
161 # pragma warning(pop)
#define AGXPHYSICS_EXPORT
Base class for multi threaded transferring simulation between a server and a client using sockets.
virtual bool waitForConnection()=0
size_t sendData(const uint8_t *data, size_t numBytes)
Transmit data to remote party.
virtual void waitForDataAndTransfer()=0
virtual ~RemoteDebugBase()
virtual void dropConnection()
Drop the connection to the remote host and wait for a new one.
void setMaxQueueSize(size_t numElements)
void pushBlock(DataBlock *data)
Push a block of data for access either by client (simulation) or to be transmitted over socket.
void shutdown()
Shutdown the communication threads, will cause this client to be non-usable any more.
RemoteDebugBase()
Default constructor.
size_t getMaxQueueSize() const
size_t receiveData(uint8_t *data, size_t numBytes)
Receive data from remote party.
virtual void handleConnectionDrop()
virtual bool isConnected()
void run()
This method is invoked by start.
agx::ref_ptr< DataBlock > DataBlockRef
Basic wrapper class aroud std::thread.
Block synchronization primitive.
Base class providing referencing counted objects.
Smart pointer for handling referenced counted objects.
Containins classes for sending/reading data over sockets as well as compression functionality.