Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

poe::filter::stream(3pm) [debian man page]

POE::Filter::Stream(3pm)				User Contributed Perl Documentation				  POE::Filter::Stream(3pm)

NAME
POE::Filter::Stream - a no-op filter that passes data through unchanged SYNOPSIS
#!perl use Term::ReadKey; use POE qw(Wheel::ReadWrite Filter::Stream); POE::Session->create( inline_states => { _start => sub { ReadMode "ultra-raw"; $_[HEAP]{io} = POE::Wheel::ReadWrite->new( InputHandle => *STDIN, OutputHandle => *STDOUT, InputEvent => "got_some_data", Filter => POE::Filter::Stream->new(), ); }, got_some_data => sub { $_[HEAP]{io}->put("<$_[ARG0]>"); delete $_[HEAP]{io} if $_[ARG0] eq "cC"; }, _stop => sub { ReadMode "restore"; print " "; }, } ); POE::Kernel->run(); exit; DESCRIPTION
POE::Filter::Stream passes data through without changing it. It follows POE::Filter's API and implements no new functionality. In the "SYNOPSIS", POE::Filter::Stream is used to collect keystrokes without any interpretation and display output without any embellishments. SEE ALSO
POE::Filter for more information about filters in general. The SEE ALSO section in POE contains a table of contents covering the entire POE distribution. BUGS
None known. AUTHORS &; COPYRIGHTS Please see POE for more information about authors and contributors. perl v5.14.2 2012-05-15 POE::Filter::Stream(3pm)

Check Out this Related Man Page

POE::Driver::SysRW(3pm) 				User Contributed Perl Documentation				   POE::Driver::SysRW(3pm)

NAME
POE::Driver::SysRW - buffered, non-blocking I/O using sysread and syswrite SYNOPSIS
"SYNOPSIS" in POE::Driver illustrates how the interface works. This module is merely one implementation. DESCRIPTION
This driver implements POE::Driver using sysread and syswrite. PUBLIC METHODS
POE::Driver::SysRW introduces some additional features not covered in the base interface. new [BlockSize => OCTETS] new() creates a new buffered I/O driver that uses sysread() to read data from a handle and syswrite() to flush data to that handle. The constructor accepts one optional named parameter, "BlockSize", which indicates the maximum number of OCTETS that will be read at one time. "BlockSize" is 64 kilobytes (65536 octets) by default. Higher values may improve performance in streaming applications, but the trade-off is a lower event granularity and increased resident memory usage. Lower "BlockSize" values reduce memory consumption somewhat with corresponding throughput penalties. my $driver = POE::Driver::SysRW->new; my $driver = POE::Driver::SysRW->new( BlockSize => $block_size ); Drivers are commonly instantiated within POE::Wheel constructor calls: $_[HEAP]{wheel} = POE::Wheel::ReadWrite->new( InputHandle => *STDIN, OutputHandle => *STDOUT, Driver => POE::Driver::SysRW->new(), Filter => POE::Filter::Line->new(), ); Applications almost always use POE::Driver::SysRW, so POE::Wheel objects almost always will create their own if no Driver is specified. All Other Methods POE::Driver::SysRW documents the abstract interface documented in POE::Driver. Please see POE::Driver for more details about the following methods: flush get get_out_messages_buffered put SEE ALSO
POE::Driver, POE::Wheel. Also see the SEE ALSO section of POE, which contains a brief roadmap of POE's documentation. AUTHORS &; COPYRIGHTS Please see POE for more information about authors and contributors. perl v5.14.2 2012-05-15 POE::Driver::SysRW(3pm)
Man Page