NNG_DIALER_CLOSE(3)
π NNG_DIALER_CLOSE(3) β nng_dialer_close π
okay bestie, welcome to the NNG Reference Manual β¨ this one is short and sweet, no cap. it's about closing a dialer. that's it. that's the whole vibe. π
πΈ NAME πΈ
nng_dialer_close β close dialer π
β¨ SYNOPSIS β¨
#include <nng/nng.h>
int nng_dialer_close(nng_dialer d);
look at her. one include, one function call, one dialer. immaculate. π
π¦ DESCRIPTION π¦
so the nng_dialer_close() function closes the dialer d. and not just d β it also closes any nng_pipe objects that have been created by that dialer. the whole friend group is leaving the party together, fr fr. πͺβ¨
once this function returns, the dialer d and any of its resources are deallocated. like, gone gone. so it is an error to attempt to access d after this function has returned. do not do it. hands off. π
β οΈ attempts to accessdafter it's been closed will result inNNG_ECLOSEDerrors. the door is locked, the lights are off, nobody's home. π
also lowkey important: dialers are implicitly closed when the socket they are associated with is closed. so if the socket dips, the dialer dips too. that's just how it is. π«Ά
π RETURN VALUES π
this function returns 0 on success, and non-zero otherwise. classic. π―
π ERRORS π
NNG_ECLOSEDβ parameterddoes not refer to an open dialer. it's giving "girl, that dialer is not real." π
π SEE ALSO π
iykyk, go read those next, they're iconic too. πβ¨
and that's the page, bestie!! π«Ά written up for the NNG Reference Manual, dated 2026-06-30, filed under NNG_DIALER_CLOSE(3) β go close some dialers responsibly, mwah π
π¦ 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