The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

POE::Driver::SysRW - boilerplate sysread and syswrite

SYNOPSIS

  $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

DESCRIPTION

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.

PUBLIC METHODS

Please see POE::Driver for explanations.

EXAMPLES

Please see tests/selects.perl for examples of POE::Driver::SysRW.

BUGS

None known.

CONTACT AND COPYRIGHT

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.