SYNOPSIS
#include <nng/nng.h>
#include <nng/supplemental/ipc/ipc.h>
typedef struct nng_ipc_s nng_ipc;
DESCRIPTION
An nng_ipc represents a connected stream
using interprocess communication (IPC).
IPC stream objects can be used to send or receive data.
The nng_ipc object is used for raw IPC connections, and
should not be confused with a pipe object created using the
nng_ipc(7) transport.
|
| Most NNG applications should not use this, but instead use the nng_ipc(7) transport instead. |
These objects are created either establishing an outgoing connection
with nng_ipc_dialer_dial() or by
accepting in incoming connection with
nng_ipc_listener_accept().
IPC connections are byte streams, and are “reliable” in that data will not be delivered out of order, or with portions missing.
Data can be sent using nng_ipc_send() or
received with nng_ipc_recv().
When the connection is no longer needed, it should be freed with
nng_ipc_free().
It is possible to close the connection, without freeing it, by
using nng_ipc_close().
|
Options
The following options are applicable to IPC connections, and may be
accessed using the nng_ipc_getopt() and
nng_ipc_setopt() functions.
Other platform specific options may be available as well.