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

SYNOPSIS

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

int nng_ipc_listener_setopt(nng_ipc_listener *l, const char *name, const void *data, size_t size);

DESCRIPTION

The nng_ipc_listener_setopt() is used to set the option name for the IPC listener l. The value to set is copied from data, which should be size bytes in length.

Options

The options specifically suppported for modification on IPC listeners are:

Availability of the above options is platform-specific.

RETURN VALUES

This function returns 0 on success, and non-zero otherwise.

ERRORS

NNG_ECLOSED

The listener is closed.

NNG_EINVAL

Either data or size are invalid.

NNG_ENOTSUP

The option name is not supported.

NNG_EREADONLY

The option name may not be modified.

SEE ALSO