nng_pipe_dialer(3)

nng_pipe_dialer3

Return dialer that created pipe

Usage

#include <nng/nng.h>
nng_dialer nng_pipe_dialer(nng_pipe p);

Overview

The nng_pipe_dialer() function returns the nng_dialer that created the pipe p. If the pipe was not created by a dialer, then the returned value will have an identifier (nng_dialer_id()) of -1.

Return values

This function returns the dialer that created the pipe, unless it was not created by a dialer, in which case a value initialized with NNG_DIALER_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.