nng_pipe_listener(3)

nng_pipe_listener3

Return listener that created pipe

Usage

#include <nng/nng.h>
nng_listener nng_pipe_listener(nng_pipe p);

Overview

The nng_pipe_listener() function returns the nng_listener that created the pipe p. If the pipe was not created by a listener, then the returned value will have an identifier (nng_listener_id()) of -1.

Return values

This function returns the listener that created the pipe, unless it was not created by a listener, in which case a value initialized with NNG_LISTENER_INITIALIZER will be returned.

Errors

None.

From libnng-dev 1.10.1-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.