# $Id: Return.pm 145 2006-12-25 19:09:56Z rcaputo $

=head1 NAME

POE::Request::Return - encapsulates final replies to POE::Request messages


	# Note, this is not a complete program.
	# See the distribution's examples directory.

	my $req;
		type        => "failure",
		args        => {
			function  => "connect",
			errnum    => $!+0,
			errstr    => "$!",


POE::Request::Return objects are used internally to encapsulate
messages sent by $some_request->return(...).  Returned messages end
their transactions.


package POE::Request::Return;

use warnings;
use strict;

use POE::Request::Upward qw(

use base qw(POE::Request::Upward);

# Return requests are defunct.  They may not be recalled.  Even though
# the parent will never be used here, it's important not to store it
# anyway.  Otherwise circular references may occur, or deeeeep
# recursion in cases where recursion isn't necessary at all.

sub _init_subclass {
	my ($self, $current_request) = @_;
	$self->[REQ_PARENT_REQUEST] = 0;


=head1 BUGS

See L<http://thirdlobe.com/projects/poe-stage/report/1> for known
issues.  See L<http://thirdlobe.com/projects/poe-stage/newticket> to
report one.

POE::Stage is too young for production use.  For example, its syntax
is still changing.  You probably know what you don't like, or what you
need that isn't included, so consider fixing or adding that, or at
least discussing it with the people on POE's mailing list or IRC
channel.  Your feedback and contributions will bring POE::Stage closer
to usability.  We appreciate it.

=head1 SEE ALSO

POE::Request::Return is comprised almost entirely of
POE::Request::Upward's features.  You should see
L<POE::Request::Upward> for a deeper understanding of
POE::Request::Return, and L<POE::Request> for a more in-depth
discussion of POE requests in general.

=head1 AUTHORS

Rocco Caputo <rcaputo@cpan.org>.

=head1 LICENSE

POE::Request::Return is Copyright 2005-2006 by Rocco Caputo.  All
rights are reserved.  You may use, modify, and/or distribute this
module under the same terms as Perl itself.