POE::Driver::SysRW - boilerplate sysread and syswrite
$sysrw = new POE::Driver::SysRW(); # create the SysRW driver \@input_chunks = $sysrw->get($handle); # sysread from $handle $result = $sysrw->put($output_chunk); # add chunk to output buffer $result = $sysrw->flush($handle); # syswrite from output buffer
Basic non-blocking sysread and syswrite with error checking and buffering that is compatible with POE::Kernel's non-blocking select(2) logic. Ignores EAGAIN.
POE::Kernel
select(2)
EAGAIN
Please see POE::Driver for explanations.
POE::Driver
Please see tests/selects.perl for examples of POE::Driver::SysRW.
POE::Driver::SysRW
None known.
Copyright 1998 Rocco Caputo <troc@netrus.net>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install POE, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE
CPAN shell
perl -MCPAN -e shell install POE
For more information on module installation, please visit the detailed CPAN module installation guide.