Go to the source code of this file.
◆ ipc_init_pipe()
initializes a new context. Do not use this method directly, use ipc_init of ipc.h instead.
- Returns
- a heap allocated ipc_pipe_context or NULL on failure.
◆ ipc_pipe_close()
closes given context. Do not use this method directly, use ipc_close of ipc.h instead.
- Parameters
-
- Returns
- 0 on success, -1 on failure.
◆ ipc_pipe_destroy()
destroys given context. Do not use this method directly, use ipc_destroy of ipc.h instead.
- Parameters
-
- Returns
- 0 on success, -1 on failure.
◆ ipc_pipe_retrieve()
retrieves message from the given context. Do not use this method directly, use ipc_retrieve of ipc.h instead.
- Parameters
-
| context | the ipc_pipe_context to be used; must be previously initialized via ipc_pipe_init. |
- Returns
- a heap allocated char array or NULL on failure.
◆ ipc_pipe_send()
| int ipc_pipe_send |
( |
struct ipc_pipe_context * | context, |
|
|
const char * | msg, |
|
|
int | len ) |
sends given msg via the given context. Do not use this method directly, use ipc_send of ipc.h instead.
- Parameters
-
| context | the ipc_pipe_context to be used; must be previously initialized via ipc_pipe_init. |
| msg | the message to send |
| len | the length of msg |
- Returns
- bytes written, 1 on write error