ISelector.register

Associate a conduit to the selector and track specific I/O events. If the conduit is already part of the selector, modify the events or atachment.

interface ISelector
abstract
void
register

Parameters

conduit ISelectable

conduit that will be associated to the selector; must be a valid conduit (i.e. not null and open).

events Event

bit mask of Event values that represent the events that will be tracked for the conduit.

attachment Object

optional object with application-specific data that will be available when an event is triggered for the conduit

Examples

ISelector selector;
SocketConduit conduit;
MyClass object;

selector.register(conduit, Event.Read | Event.Write, object);

Meta