NNG_STREAM_DIALER_FREE(3str)

πŸ“¦ version 1.11, in alpine 3.24

πŸ’… 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 πŸ”₯

  1. it closes the byte stream dialer d you handed it
  2. 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 🌈

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