--- version: tip layout: refman --- nng_ipc_listener_accept(3ipc)

SYNOPSIS

#include <nng/nng.h>
#include <nng/supplemental/ipc/ipc.h>

void nng_ipc_listener_accept(nng_ipc_listener *l, nng_aio *aio);

DESCRIPTION

The nng_ipc_listener_accept() attempts to accept an incoming IPC connection from a remote peer, using the listener l. The operation is completed asynchronously, using aio.

This operation can only be done after the listener is already bound to an IPC path and is listening.

If a connection is successfully established, the aio will have the resulting nng_ipc stored as its first output. (See nng_aio_get_output().)

RETURN VALUES

None.

ERRORS

NNG_ECANCELED

The operation was aborted.

NNG_ECLOSED

The listener is closed.

NNG_ECONNRESET

The connection was reset by the peer.

NNG_ENOMEM

Insufficient free memory exists.

NNG_ESTATE

The listener is not not listening.

SEE ALSO