CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
MemoryRequestConnection.h File Reference

Client-side endpoint of the named shared-memory request/reply service. More...

Include dependency graph for MemoryRequestConnection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cmlabs::RequestServerHeader
 Header of a request-server segment: identity, limits and layout parameters. More...
struct  cmlabs::RequestConnectionHeader
 Header of one client connection area within a request-server segment. More...
class  cmlabs::MemoryRequestConnection
 Client endpoint connected to a named shared-memory request server. More...

Namespaces

namespace  cmlabs

Macros

#define MEMORYREQUESTSERVER_INIT   1
 Server status value: segment initialised and accepting connections.

Detailed Description

Client-side endpoint of the named shared-memory request/reply service.

A MemoryRequestServer creates a named segment with a RequestServerHeader, a request- status table and per-connection queue areas. Any process connects by name with a MemoryRequestConnection, then either issues requests (makeRequest/waitForRequestReply) or serves them (waitForRequest/replyToRequest). Replies that arrive out of order are held in a local replyCache keyed by request id.

Warning
Shared-memory layouts; changing any struct here requires a full rebuild of all binaries (make clean && make) — see MemoryManager.h for the ABI warning.

Definition in file MemoryRequestConnection.h.

Macro Definition Documentation

◆ MEMORYREQUESTSERVER_INIT

#define MEMORYREQUESTSERVER_INIT   1

Server status value: segment initialised and accepting connections.

Definition at line 22 of file MemoryRequestConnection.h.

Referenced by cmlabs::MemoryRequestServer::init().