NNG_STREAM_DIALER_CLOSE(3str)
πΈ NAME πΈ
Okay so this is the NNG_STREAM_DIALER_CLOSE(3str) page from the NNG Reference Manual π
β¨ β and it's all about nng_stream_dialer_close, which closes a byte stream dialer. Short version: close byte stream dialer. Iconic.
β¨ SYNOPSIS β¨
#include <nng/nng.h>
void nng_stream_dialer_close(nng_stream_dialer *d);
π¦ DESCRIPTION π¦
The nng_stream_dialer_close() function closes the byte stream dialer you hand it as d β yes, d is the main character here π. It closes it, but does not free the underlying resources associated with it. That distinction is important, bestie: closing is not deallocating π«Ά.
If any dial operations using d are in progress, they will be terminated with an NNG_ECLOSED error condition. RIP to those in-flight dials, they get the closed vibe check π.
Also: any future accesses to the dialer d will result in NNG_ECLOSED too. So once it's closed, it's closed β no sneaky comeback tour π«.
Note β This function does not release the memory for the dialer. So the application should still free the memory using nng_stream_dialer_free() once it is certain that nothing else is using it. Close first, free later, don't mix them up π.
π RETURN VALUES π
None. That's it. No return value, no drama. void really said βI have nothing to sayβ π
.
π ERRORS π
None.
π SEE ALSO π
nng_strerror(3)nng_stream_dialer_alloc(3str)nng_stream_dialer_dial(3str)nng_stream_dialer_free(3str)nng_stream_dialer(5)
xoxo, bestie π this was the NNG Reference Manual, page NNG_STREAM_DIALER_CLOSE(3str), dated 2026-01-13. slay and happy closing β¨π
π¦ where this page comes from
- alpine 3.24: nng-doc 1.11-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms