NNG_PIPE_SOCKET(3)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

πŸ’– 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