Class RMGIpc¶
Defined in File RMGIpc.hh
Class Documentation¶
-
class RMGIpc¶
IPC message sender implementation.
Note
The receiver implementation and message format documentation can be found in
remage.ipc.Public Functions
-
RMGIpc() = delete¶
Public Static Functions
-
static void Setup(int ipc_pipe_fd, int proc_num)¶
Set the IPC pipe (write end) file descriptor.
-
static inline std::string CreateMessage(const std::string &command, const std::string ¶m)¶
Create an IPC message with a key and a single value.
-
static bool SendIpcNonBlocking(std::string msg)¶
Send a non-blocking IPC message.
The message is a UTF-8 encoded buffer that already contains the message structure, such as CreateMessage.
-
static bool SendIpcBlocking(std::string msg)¶
Send a blocking IPC message.
The message is a UTF-8 encoded buffer that already contains the message structure, such as CreateMessage.
Public Static Attributes
-
static std::atomic<bool> fWaitForIpc = false¶
Flag for waiting for the SIGUSR2 signal for blocking messages.
Should not be used by the user and only be set by the signal handler.
-
RMGIpc() = delete¶