NNG_STREA...ENER_CLOSE(3str)

πŸ“¦ version 1.11, in alpine 3.24

🌸 NAME 🌸

This is the NNG_STREA...ENER_CLOSE(3str) page from the NNG Reference Manual, bestie πŸ’…

nng_stream_listener_close β€” close a byte stream listener. That’s the whole vibe πŸŽ€


✨ SYNOPSIS ✨

#include <nng/nng.h>

void nng_stream_listener_close(nng_stream_listener *l);

πŸ’– DESCRIPTION πŸ’–

Okay so nng_stream_listener_close() closes the supplied connected byte stream listener l, but it does not free the underlying resources associated with it. Not me reminding you that closing β‰  freeing 😭

If any accept operations using d are in progress, they will be terminated with an NNG_ECLOSED error condition.

Furthermore, any future accesses to the listener l will also result in NNG_ECLOSED.

🫢 Note: This function does not release the memory for the listener, so the application should still free the memory using nng_stream_listener_free() once it is certain that nothing else is using it. Periodt.

🌈 RETURN VALUES 🌈

None. Zero. Nada. It’s giving β€œvoid function, no return era” ✨


πŸ¦‹ ERRORS πŸ¦‹

None.


πŸ‘‘ SEE ALSO πŸ‘‘


Sign-off time, bestie πŸŽ€ the footer is giving source/version NNG_STREA...ENER_CLOSE(3str), dated 2026-01-13. Slay πŸ’–

πŸ“¦ where this page comes from