ISelectListener.handle

I/O event handler

Called from SelectDispatcher during event loop.

class ISelectListener
final override
bool
handle
(
Event event
)

Parameters

event Event

identifier of I/O event that just occurred on the device

Return Value

Type: bool

true if the handler should be called again on next event occurrence or false if this instance should be unregistered from the SelectDispatcher (this is effectively a server shutdown).

TODO: accept() could be called in a loop in this method, in order to accept as many connections as possible each time the EPOLLIN event fires for the listening socket

Meta