SPVM::Sys::Select - Select System Call
use Sys::Select;
Sys::Select provides the select function and its utility functions.
Sys::Select
static method FD_ZERO : void ($set : Sys::Select::Fd_set);
FD_ZERO() clears a set.
See the select(2) - Linux man page in Linux.
The $set is a Sys::Select::Fd_set object.
$set
static method FD_SET : void ($fd : int, $set : Sys::Select::Fd_set);
static method FD_CLR : void ($fd : int, $set : Sys::Select::Fd_set);
FD_SET() respectively adds a given file descriptor from a set.
static method FD_ISSET : int ($fd : int, $set : Sys::Select::Fd_set);
FD_ISSET() tests to see if a file descriptor is part of the set.
static method select : int ($nfds : int, $readfds : Sys::Select::Fd_set, $writefds : Sys::Select::Fd_set, $exceptfds : Sys::Select::Fd_set, $timeout : Sys::Time::Timeval);
select() allows a program to monitor multiple file descriptors, waiting until one or more of the file descriptors become "ready" for some class of I/O operation (e.g., input possible). A file descriptor is considered ready if it is possible to perform the corresponding I/O operation (e.g., read(2)) without blocking.
The $readfds is a Sys::Select::Fd_set object.
$readfds
The $writefds is a Sys::Select::Fd_set object.
$writefds
The $exceptfds is a Sys::Select::Fd_set object.
$exceptfds
The $timeout is a Sys::Time::Timeval object.
$timeout
To install SPVM::Sys, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::Sys
CPAN shell
perl -MCPAN -e shell install SPVM::Sys
For more information on module installation, please visit the detailed CPAN module installation guide.