9#if !defined(_MEMORYREQUESTSERVER_H_)
10#define _MEMORYREQUESTSERVER_H_
43 bool init(
const char* memoryName, uint32 maxConnectionCount, uint32 maxQueueSize, uint32 maxRequestCount);
Client-side endpoint of the named shared-memory request/reply service.
The central Psyclone data container: a self-contained binary message with typed, named user entries.
Client endpoint connected to a named shared-memory request server.
static bool UnitTest()
Self-test of the request/reply round trip.
bool replyToRequest(uint64 id, DataMessage *msg)
Send the reply for request id (copied; caller keeps ownership).
bool shutdown()
Detach and mark the server stopped.
DataMessage * waitForRequest(uint32 ms)
Block up to ms milliseconds for the next client request.
bool init(const char *memoryName, uint32 maxConnectionCount, uint32 maxQueueSize, uint32 maxRequestCount)
Create the named server segment.
bool setRequestStatus(uint64 id, uint16 status)
Advance request id's MEMORYREQUEST_* status.
Recursive mutual-exclusion lock, optionally named for cross-process use.