This documentation is for the TIP (development tree) of NNG and may represent unreleased changes or functionality that is experimental, and is subject to change before release. The latest released version is v1.8.0. See the documentation for v1.8.0 for the most up-to-date information.

nng_pipe_socket(3)

NAME

nng_pipe_socket - return owning socket for pipe

SYNOPSIS

#include <nng/nng.h>

nng_socket nng_pipe_socket(nng_pipe p);

DESCRIPTION

The nng_pipe_socket() function returns the nng_socket associated with the pipe p.

The returned socket may be closed or in the process of closing, in which case it will not be usable with other functions.

RETURN VALUES

This function returns the socket associated with the pipe.

ERRORS

None.

SEE ALSO