On Wed, Mar 03, 2004 at 09:53:08AM -0600, Jay Strauss wrote:
> Hi,
> 
> Is it possible to map the "Connected" state to an ObjectState in
> POE::Component::Client::TCP?  I tried:
> 
> sub start {
>     my $self = shift;
> 
>     POE::Component::Client::TCP->new (
>                 ...
>              ObjectStates => [
>                         $self =>{
>                                 Connected => 'connected',
>                                 reqMktData=>'reqMktData',
>                         },
>                 ],
>             );
> 
>         $poe_kernel->run();
> }
> 
> But no joy.

No, that's not possible.  Client::TCP defines several inline states
internally.  The Connected callback is just that---a callback.  It's
expected to be a coderef and nothing else.

-- 
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/

Reply via email to