Funzione EventLoopIoCallbackEventLoopIoCallback Function
Intestazione: #include <applibs/eventloop.h>Header: #include <applibs/eventloop.h>
Callback richiamato da un oggetto EventLoop quando si verifica un evento di I/O registrato.The callback invoked by an EventLoop object when a registered I/O event occurs.
typedef void EventLoopIoCallback(EventLoop *el, int fd, EventLoop_IoEvents events, void *context);
ParametriParameters
el
EventLoop in cui è registrato il callback.el
The EventLoop to which the callback is registered.fd
Il descrittore di file per il nuovo evento di I/O.fd
The file descriptor for the new I/O event.events
La maschera di bit degli eventi generati per l'oggettoEventLoop
.events
The bitmask of events raised for theEventLoop
object.context
Il puntatore di contesto facoltativo passato a EventLoop_RegisterIo.context
The optional context pointer that was passed to EventLoop_RegisterIo.