NAME
POE::Wheel - extend POE::Session
by adding new states
SYNOPSIS
$wheel = new POE::Wheel::Derivative
( $kernel,
'name1' => $value1, # These parameters depend on the type of wheel
'name2' => $value2, # being created. See each wheel's documentation
'nameN' => $valueN, # for more information.
);
DESCRIPTION
When created, POE::Wheel
derivatives splice their own states into the parent POE::Session
state machine. When destroyed, they remove their states from the machine.
PUBLIC METHODS
- new POE::Wheel::Derivative
-
$wheel = new POE::Wheel::Derivative($kernel, 'name' =
'value', ...)>The name/value pairs are specific to each class derived from
POE::Wheel
. - Others
-
POE::Wheel
derivatives may have their own public methods.POE::Wheel
derivatives send information to their parentPOE::Session
s by posting events.
EXAMPLES
Please see tests/selects.perl for an example of POE::Wheel::ListenAccept
and POE::Wheel::ReadWrite
.
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.