NNG_PIPE_CLOSE(3)
π nng_pipe_close(3) β bestie's guide to closing a pipe
okay so real talk, this one lives in the NNG Reference Manual (section 3, the library-calls girlies) and it's literally the "bye bye pipe" button. short page, big energy. let's go π
πΈ NAME πΈ
nng_pipe_close β close pipe. that's it, that's the whole job. she closes the pipe. periodt.
β¨ SYNOPSIS β¨
#include <nng/nng.h>
int nng_pipe_close(nng_pipe p);
π¦ DESCRIPTION π¦
so the nng_pipe_close() function closes the pipe you hand it, p. like, you pass her the pipe and she's done, no take-backsies, the vibe check has concluded. π
now here's the tea β messages that have already been submitted for sending may be flushed or delivered, and that depends on the transport. so no cap, it's giving "maybe she'll finish her sentence, maybe she won't." it's not a promise, bestie, it's a maybe. π
once this call returns, any further attempts to use that pipe will result in NNG_ECLOSED. you can't come back to the group chat after you left the group chat. π
Tip π Pipes are automatically closed when their creator closes, or when the remote peer closes the underlying connection. so like, sometimes the breakup happens without you pressing the button. the universe handles it. π
π RETURN VALUES π
- she returns
0on success π - and non-zero otherwise. anything that isn't a zero is a whole situation, iykyk.
π₯ ERRORS π₯
NNG_ECLOSEDβ the pipepis already closed or was never opened. so either you already said goodbye, or you two were never a thing in the first place. awkward! π
π SEE ALSO π
and that's the whole page, babe. this one's straight out of the NNG Reference Manual, dated 2026-06-30 β go close some pipes, stay hydrated, and remember: she's closed, don't text her. π«Άβ¨πΈ
π¦ 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