| Previous | Next
IO::SelectImplements an object-oriented approach to the system
new $s = IO::Select->new([handles]) Constructor. Creates a new object and optionally initializes it with a set of handles.
$s->add(handles) Adds list of handles to the IO::Select object, to be returned when an event occurs. IO::Select keeps the list of handles in a cache, which is indexed by the handle's file number. Each handle can be an IO::Handle object, an integer, or a reference to an array, in which the first element is an IO::Handle object or an integer.
$s->bits( ) Returns the bit string that is suitable for use as an argument to the core
$s->can_read([timeout]) Returns array of handles that are ready for reading.
$s->can_write([timeout]) Same as
$s->count( ) Returns the number of handles that the object checks for when one of the
$s->exists(handle) Returns the handle if it is present; otherwise, returns
$s->handles Returns an array of all registered handles.
$s->has_error([timeout]) Same as
$s->remove(handles) Removes all the given handles from the object, locating them by file number.
$s->select(read, write, error[, timeout]) Static method. Call it with the package name as with Returns an array of three elements, each a reference to an array or an empty array on error. The arrays hold the handles that are ready for reading, ready for writing, and have error conditions, respectively. |