NNG_PIPE_SOCKET(3)
π NNG_PIPE_SOCKET(3) π
okay bestie, welcome to the NNG Reference Manual β¨ this one's short and sweet, but it's lowkey important, so let's get into it π«Ά
πΈ NAME πΈ
nng_pipe_socket β hi bestie, this returns the owning socket for a pipe π
β¨ SYNOPSIS β¨
#include <nng/nng.h>
nng_socket nng_pipe_socket(nng_pipe p);
like, that's the whole vibe. one include, one function, no notes π
π¦ DESCRIPTION π¦
so the nng_pipe_socket() function returns the nng_socket that's associated with the pipe p. that's it. that's the function. it's giving short king π₯
Note π the returned socket may be closed or in the process of closing, and in that case it will not be usable with other functions. so like, vibe check that socket before you go using it everywhere, no cap π
β RETURN VALUES β
this function returns the socket associated with the pipe. simple. iconic. periodt π
π ERRORS π
None. literally none. zero errors. not a single one. the way that this function has no failure mode is so main character of it ππ
π SEE ALSO π
all the besties are linked up, iykyk π§
okay that's the whole page, slay π
this was the NNG Reference Manual, dated 2026-06-30 β mwah, love u, go read nng_pipe(5) next πβ¨
π¦ 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