NNG_STREAM_DIALER_FREE(3str)
π NNG_STREAM_DIALER_FREE(3str) β¨
okay so bestie, welcome to the NNG Reference Manual β this one's NNG_STREAM_DIALER_FREE(3str) and it's literally the "bye babe, you're done" page for your stream dialer. no cap, it's short, it's sweet, it's giving cleanup era π
πΈ NAME πΈ
nng_stream_dialer_free β free a byte stream dialer, bestie. that's it. that's the whole job π
β¨ SYNOPSIS β¨
#include <nng/nng.h>
void nng_stream_dialer_free(nng_stream_dialer *d);
π¦ DESCRIPTION π¦
okay so nng_stream_dialer_free() does two things and honestly it ate both of them π₯
- it closes the byte stream dialer
dyou handed it - it frees all the underlying resources that go with it
like, it's the full send. dialer closed, resources reclaimed, everyone go home π«Ά
so like β if any dial operations using d are still in progress? yeah they get terminated with an NNG_ECLOSED error condition. not a vibe for them, but that's how it is, periodt π
β οΈ Warning β bestie, listen to me. it is important that your application make sure no further accesses are made to d, because the memory backing it will be reclaimed for other uses. like, that memory is gone, it's somebody else's now, do not touch it. this is the "don't text your ex" of pointers, iykyk π
π RETURN VALUES π
None. literally nothing. it returns void and honestly? iconic. no notes β¨
π ERRORS π
None. zero. zilch. nada. it can't fail you, bestie ππ
π SEE ALSO π
nng_strerror(3)nng_stream_dialer_alloc(3str)nng_stream_dialer_close(3str)nng_stream_dialer_dial(3str)nng_stream_dialer(5)
go read those, they're all slay in their own way π
okay that's the page!! NNG Reference Manual, dated 2026-01-13 β mwah, love u, go clean up after yourself, main character energy only ππ·π§ββοΈπ
π¦ 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