NNG_STREA...ENER_CLOSE(3str)
πΈ 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 π
nng_strerror(3)nng_stream_listener_accept(3str)nng_stream_listener_alloc(3str)nng_stream_listener_free(3str)nng_stream_listener(5)
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
- 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