Creator for both function and delegate callbacks Param: - callback pointer - callback argument pointer - context pointer to store
Creator to copy internal nng_aio structure
A destructor is present on this object, but not explicitly documented in the source.
= no callback
= abort(NNG_CANCELLED) = no callback = no wait for abort and callback complete
Clear message slot
= callback
Get NNGMessage after AIO
Realloc and reuse object
Set NNGMessage to transfer to AIO
Poller sleep
= abort(NNG_CANCELLED) = no callback = wait for abort and callback complete
Poller wait
Context getter
Context setter
Returns count of bytes transferred through AIO
Internal pointer getter
Internal pointer setter
Returns AIO status - zero or error code
Set AIO timeout
{NNGAio} Async IO poller for many purposes. Contains the NNGMessage payload and optional context pointer. General usage - inter-thread communication. Properties: - pointer: to read the internal nng_aio pointer - pointer: to set the nng_aio pointer to external one - context: to read the stored context - count: number of bytes transfwred by the AIO operation - result: result of the AIO operation - zero or error code - timeout: to set teh poll timeout Methods: - constructor -- callback pointer: function or delegate void (void*) -- argument pointer: to be sent to callback -- context pointer: to store and retrieve - realloc: same agruments as constructor - to reuse and rearm aio - begin: begin postponed AIO aopertion - wait: block until AIO success or error or timeout - sleep: performs an asynchronous "sleep", causing the callback for aio to be executed after delay - abort: abort immediately, return error as result but call callback - cancel: like abort with predefined error NNG_ECANCELED - stop: like cancel but prevent callback from calling, except it is already running - get_msg: extract NNGMessage passed to the AIO - set_msg: push NNGMessage to aio before start operation - clear_msg: clear stored NNGMessage TODO: implement [get/set] input/output/iov