nanomsg next generation NNG  
Home GitHub Documentation

This documentation is for version v1.0.0 of nng, but the latest released version is v1.7.3. see the documentation for v1.7.3 for the most up-to-date information.
nng_pipe_listener(3)

SYNOPSIS

#include <nng/nng.h>

nng_listener nng_pipe_listener(nng_pipe p);

DESCRIPTION

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.

NNG Reference Manual vv1.0.0 © 2019 Staysail Systems, Inc, © 2018 Capitar IT Group BV
This document is supplied under the MIT License.
nanomsg™ and nng™ are trademarks of Garrett D'Amore.