This class represents a multiplexor of sockets.
A selector allows to detect when I/O is ready for a set of sockets
Defined in: Selector.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Creates a selector.
|
| Method Attributes | Method Name and Description |
|---|---|
|
close()
Closes this selector.
|
|
|
register(socket, key, mode)
Registers a socket in this selector.
|
|
|
select()
Selects a set of keys whose corresponding channels are ready for I/O operations.
|
|
|
unregister(key)
Removes a socket from this selector.
|