SYNOPSIS
#include <nng/nng.h>
#include <nng/supplemental/ipc/ipc.h>
void nng_ipc_close(nng_ipc *conn);
DESCRIPTION
The nng_ipc_close() function closes the supplied IPC connection, conn.
If any operations are pending (such as nng_ipc_send()
or nng_ipc_recv()) they will be terminated with
an NNG_ECLOSED error condition.
Also, any new operations will fail with NNG_ECLOSED after the connection
is closed.
| Closing the connection while data is in transmission will likely lead to loss of that data. There is no automatic linger or flush to ensure that the socket send buffers have completely transmitted. |
Closing the connection does not free the resources associated with it.
Once it is certain that no more operations are pending on the connection,
it should be freed with nng_ipc_free().
|
RETURN VALUES
None.
ERRORS
None.