SelectedKeysHandler

Constructors

this
this(UnregisterDg unregister, EpollException e)

Constructor.

Members

Aliases

UnregisterDg
alias UnregisterDg = int delegate(ISelectClient client, bool remove_from_selected_set = false)

Type alias of a callback delegate to remove a client registration. Does not fail/throw if the client is not registered.

Functions

handleSelectedKey
void handleSelectedKey(epoll_event_t key, bool delegate(Exception) unhandled_exception_hook)

Handles key by calling its handle() method and unregisters it if the handle() call either returns false or throws an exception. In the latter case the exception thrown is reported to the client by calling its error() method.

opCall
void opCall(epoll_event_t[] selected_set, bool delegate(Exception) unhandled_exception_hook)

Handles the clients in selected_set.

unregisterAndFinalize
void unregisterAndFinalize(ISelectClient client, ISelectClient.FinalizeStatus status)

Unregisters and finalizes a select client. Any errors which occur while calling the client's finalizer are caught and reported to the client's error() method (see clientError(), below).

Variables

unregister
UnregisterDg unregister;

Callback delegate to remove a client registration, see the description for the type alias above.

Inherited Members

From ISelectedKeysHandler

opCall
void opCall(epoll_event_t[] selected_set, bool delegate(Exception) unhandled_exception_hook)

Handles the clients in selected_set.

Meta