#include <lsm_ipc.hpp>

Public Member Functions | |
| Ipc () | |
| Ipc (int fd) | |
| Ipc (std::string socket_path) | |
| ~Ipc () | |
| void | requestSend (const std::string request, const Value ¶ms, int32_t id=100) |
| Value | readRequest (void) |
| void | responseSend (const Value &response, uint32_t id=100) |
| Value | responseRead () |
| void | errorSend (int error_code, std::string msg, std::string debug, uint32_t id=100) |
| Value | rpc (const std::string &request, const Value ¶ms, int32_t id=100) |
Definition at line 407 of file lsm_ipc.hpp.
| Ipc | ( | ) |
Constructor
Definition at line 798 of file lsm_ipc.cpp.
| Ipc | ( | int | fd | ) |
Constructor that takes a file descriptor
| fd | File descriptor to use |
Definition at line 802 of file lsm_ipc.cpp.
| Ipc | ( | std::string | socket_path | ) |
Constructor that takes a socket path
| socket_path | Unix domain socket |
Definition at line 806 of file lsm_ipc.cpp.

| ~Ipc | ( | ) |
| void errorSend | ( | int | error_code, | |
| std::string | msg, | |||
| std::string | debug, | |||
| uint32_t | id = 100 | |||
| ) |
Send an error
| error_code | Error code | |
| msg | Error message | |
| debug | Debug data | |
| id | Id that matches request |
Definition at line 841 of file lsm_ipc.cpp.

| Value readRequest | ( | void | ) |
Reads a request
Definition at line 866 of file lsm_ipc.cpp.


| void requestSend | ( | const std::string | request, | |
| const Value & | params, | |||
| int32_t | id = 100 | |||
| ) |
Send a request over IPC
| request | IPC function name | |
| params | Parameters | |
| id | Request ID |
Definition at line 820 of file lsm_ipc.cpp.


| Value responseRead | ( | ) |
Read a response
Definition at line 892 of file lsm_ipc.cpp.


| void responseSend | ( | const Value & | response, | |
| uint32_t | id = 100 | |||
| ) |
Send a response to a request
| response | Response value | |
| id | Id that matches request |
Definition at line 873 of file lsm_ipc.cpp.

Do a remote procedure call (Request with a returned response
| request | Function method | |
| params | Function parameters | |
| id | Id of request |
Definition at line 907 of file lsm_ipc.cpp.

1.6.1