nanomsg / nng

nanomsg-next-generation -- light-weight brokerless messaging
https://nng.nanomsg.org
MIT License
3.63k stars 472 forks source link

[Question] How to pass a value or datas in the callback function of nng_aio_alloc? #1794

Closed alawn-wang closed 3 months ago

alawn-wang commented 4 months ago

I have create a server to listen the TCP stream connect, such like nng_stream_listener_accept(listener, aio_accept), when a stream connected, the callback function of nng_aio* aio_accept will be called, i want to pass some data in this function. Is there any way to implement it?