NNG_PIPE_LISTENER(3)
π NNG_PIPE_LISTENER π
okay bestie, gather round, because this is a lil function from the NNG Reference Manual that answers one very specific question and we're gonna slay it together β¨
β¨ NAME β¨
nng_pipe_listener β return the listener that created a pipe π
π¦ SYNOPSIS π¦
#include <nng/nng.h>
nng_listener nng_pipe_listener(nng_pipe p);
πΈ DESCRIPTION πΈ
so. you've got a pipe. cute! iconic even. but likeβ¦ who made you? π
The nng_pipe_listener() function returns the nng_listener that created the pipe p. it's giving "let me introduce you to your mother" energy and honestly we love that for you.
BUT. and this is the important part bestie, do not skip this β if the pipe was not created by a listener, then the returned value will have an identifier (nng_listener_id()) of -1. so like, -1 is basically the "no listener, no parents, orphan era, main character origin story" signal π. don't be out here calling nng_listener_id() on it and expecting a real one, iykyk.
π 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. periodt. π
π ERRORS π
None. zero. nada. not a single one. no error codes, no drama, no tears. she simply returns. ate and left no crumbs π
π SEE ALSO π
that's the whole page bestie, no cap, every detail intact, nothing skipped π«Ά go forth and check your pipes' parentage responsibly π
NNG_PIPE_LISTENER(3) β from the NNG Reference Manual, dated 2026-06-30 π mwah, bye!! πβ¨
π¦ where this page comes from
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms