NNG_STREAM_LISTENER_ACCEPT(3str)

πŸ“¦ version 1.11, in alpine 3.24

πŸŽ€ NAME πŸŽ€

okay so this is the NNG_STREAM...NER_ACCEPT(3str) page from the NNG Reference Manual, and yes bestie, it's all about accepting connections πŸ’…

nng_stream_listener_accept β€” accept incoming byte stream connection.

✨ SYNOPSIS ✨

#include <nng/nng.h>

void nng_stream_listener_accept(nng_stream_listener *l, nng_aio *aio);

🌸 DESCRIPTION 🌸

okay so nng_stream_listener_accept() is the move where you attempt to accept an incoming byte stream connection from a remote peer, using the listener l. The operation is completed asynchronously, using aio β€” that's the async part, and it's doing the most. πŸ’–

This operation can only be done after the listener is already listening. No skipping steps, bestie.

If a connection is successfully established, the aio will have the resulting nng_stream object stored as its first output, which can be retrieved with nng_aio_get_output(). iconic. ✨

🫢 RETURN VALUES 🫢

None. literally none. 😌

πŸ’€ ERRORS πŸ’€

  • NNG_ECANCELED β€” the operation was aborted.
  • NNG_ECLOSED β€” the listener is closed.
  • NNG_ECONNRESET β€” the connection was reset by the peer.
  • NNG_ENOMEM β€” insufficient free memory exists.
  • NNG_ESTATE β€” the listener is not not listening. (yes, "not not" is exactly what the page says; I'm just the messenger 😭)

🌈 SEE ALSO 🌈


okay bestie, that's the whole page β€” NNG Reference Manual, dated 2026-01-13, page name NNG_STREAM...NER_ACCEPT(3str). byeeee 🫢✨

πŸ“¦ where this page comes from