Class RMGIpc

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_out, int ipc_pipe_fd_in, int proc_num)

Set the IPC pipes file descriptors.

static inline std::string CreateMessage(const std::string &command, const std::string &param)

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.