AbstractSelector.register

Associate a conduit to the selector and track specific I/O events.

class AbstractSelector
abstract
void
register

Parameters

conduit ISelectable

conduit that will be associated to the selector

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

AbstractSelector selector;
SocketConduit conduit;
MyClass object;

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

Meta