PerlIO::via::Timeout::Strategy::Select - a PerlIO::via::Timeout strategy that uses select
select
version 0.16
use PerlIO::via::Timeout qw(timeout_strategy); binmode($fh, ':via(Timeout)'); timeout_strategy($fh, 'Select', read_timeout => 0.5);
This class implements a timeout strategy to be used by PerlIO::via::Timeout.
Timeout is implemented using the select core function.
Constructor of the strategy. Takes as arguments a list of key / values :
The read timeout in second. Can be a float
The write timeout in second. Can be a float
Boolean. Defaults to 1
Damien "dams" Krotkine
This software is copyright (c) 2013 by Damien "dams" Krotkine.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install PerlIO::via::Timeout, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PerlIO::via::Timeout
CPAN shell
perl -MCPAN -e shell install PerlIO::via::Timeout
For more information on module installation, please visit the detailed CPAN module installation guide.