[poe-commits] SF.net SVN: poe: [2190] trunk/poe/lib/POE/Wheel/ReadWrite.pm
Brought to you by:
rcaputo
From: <im...@us...> - 2007-05-24 05:52:46
|
Revision: 2190 http://svn.sourceforge.net/poe/?rev=2190&view=rev Author: immute Date: 2007-05-23 22:52:46 -0700 (Wed, 23 May 2007) Log Message: ----------- Added handle accessors to Wheel::ReadWrite Modified Paths: -------------- trunk/poe/lib/POE/Wheel/ReadWrite.pm Modified: trunk/poe/lib/POE/Wheel/ReadWrite.pm =================================================================== --- trunk/poe/lib/POE/Wheel/ReadWrite.pm 2007-05-08 20:32:50 UTC (rev 2189) +++ trunk/poe/lib/POE/Wheel/ReadWrite.pm 2007-05-24 05:52:46 UTC (rev 2190) @@ -605,6 +605,18 @@ $poe_kernel->select_resume_read( $self->[HANDLE_INPUT] ); } +# Return the wheel's input handle +sub get_input_handle { + my $self = shift; + return $self->[HANDLE_INPUT]; +} + +# Return the wheel's output handle +sub get_output_handle { + my $self = shift; + return $self->[HANDLE_OUTPUT]; +} + # Shutdown the socket for reading. sub shutdown_input { my $self = shift; @@ -799,6 +811,14 @@ resume_input() instructs the wheel to resume checking its input filehandle for data. +=item get_input_handle + +=item get_output_handle + +These methods return the input and output handles (usually the same +thing, but sometimes not). Please use sparingly. Remember odd +references will screw with POE's internals. + =item shutdown_input =item shutdown_output This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |