TimeoutSelectedKeysHandler

Constructors

this
this(UnregisterDg unregister, EpollException e, ITimeoutManager timeout_manager, uint num_clients)

Constructor.

Members

Functions

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

Handles the clients in selected_set that did not time out, then reports a timeout to the timed out clients and unregisters them.

Inherited Members

From SelectedKeysHandler

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.

unregister
UnregisterDg unregister;

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

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

Handles the clients in selected_set.

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.

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).

Meta