SelectEvent

SelectEvent class -- calls the user-provided callback (passed to the constructor) when the event is fired from epoll. The trigger() method causes the event to fire.

Constructors

this
this(Handler handler)

Constructor.

Members

Aliases

Handler
alias Handler = bool delegate()

Alias for event handler delegate. The return value indicates whether the event should remain registered with the epoll selector, or be unregistered after handling.

Functions

handle_
bool handle_(ulong n)

Called from handle() when the event fires.

Inherited Members

From ISelectEvent

events
Event events()

Returs: the epoll events to register for.

fileHandle
Handle fileHandle()

Required by ISelectable interface.

handle
bool handle(Event event)

Called from the select dispatcher when the event fires. Calls the abstract handle_() method.

handle_
bool handle_(ulong n)

Called from handle() when the event fires.

trigger
void trigger()

Triggers the event.

Meta