SYNOPSIS
#include <nng/nng.h>
#include <nng/supplemental/ipc/ipc.h>
int nng_ipc_listener_listen(nng_ipc_listener l, const nng_sockaddr *sa);
DESCRIPTION
The nng_ipc_listener_listen() attempts to bind the listener l
to the local address specified by sa, which must be in the
NNG_AF_IPC address family and must have a valid IPC path.
RETURN VALUES
This function returns 0 on success, and non-zero otherwise.
ERRORS
NNG_EADDRINUSE
|
The address specified by sa is already in use. |
NNG_EADDRINVAL
|
The address specified by sa is invalid or unavailable. |
NNG_ECLOSED
|
The listener l has been closed. |
NNG_EPERM
|
Insufficient permission to create the specified IPC path. |
NNG_ESTATE
|
The listener l is already bound. |