Crinit -- Configurable Rootfs Init
|
Header defining Crinit socket communication functions used internally by the crinit-client library. More...
#include "rtimcmd.h"
Go to the source code of this file.
Functions | |
int | crinitXfer (const char *sockFile, crinitRtimCmd_t *res, const crinitRtimCmd_t *cmd) |
Header defining Crinit socket communication functions used internally by the crinit-client library.
int crinitXfer | ( | const char * | sockFile, |
crinitRtimCmd_t * | res, | ||
const crinitRtimCmd_t * | cmd | ||
) |
Perform a request/response transfer with Crinit
Will connect to Crinit and send a request/command, then receive the result/response. The server side equivalent is crinitConnThread() in notiserv.c.
The following image shows the high level communication sequence. For the lower level, refer to the internal functions crinitSend() and crinitRecv().
sockFile | Path to the AF_UNIX socket file to connect to. |
res | Return pointer for response/result. |
cmd | The command/request to send. |