EpollSelectDispatcher.register

Adds or modifies a client registration.

To change the client of a currently registered conduit when several clients share the same conduit, use changeClient().

Important note: client is stored in a memory location not managed by the D runtime memory manager (aka Garbage Collector). Therefore it is important that the caller makes sure client is stored somewhere visible to the GC (in a class variable, for example) so it won't get garbage collected and deleted.

class EpollSelectDispatcher
bool
register

Parameters

client ISelectClient

client to register, please make sure it is stored somewhere visible to the garbage collector

Return Value

Type: bool

true if everything worked as expected or false if the client was unexpectedly unregistered as it happens when its file descriptor is closed.

Throws

EpollException on error.

Meta