Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: POE yield not working

by rcaputo (Chaplain)
on Feb 10, 2013 at 15:09 UTC ( [id://1018056]=note: print w/replies, xml ) Need Help??


in reply to Re^2: POE yield not working
in thread POE yield not working

And in the same context, would you please be so kind as to elaborate following difference:

$kernel->yield( 'keepalive', $_[HEAP]{client} );
is used to address the ReadWrite instance.

In the sub "on_connect_error" (see first post) following code is used to delete the wheel upon an error:

delete $_[HEAP]{client}{$wheel_id};
I don't understand the difference between these two. Still struggling with a lot aspects in POE and I appreciate each input.

I think the first one is a typo. It refers to the hash of all clients rather than a particular client. It should probably be

$kernel->yield('keepalive', $_[HEAP]{client}{$wheel_id});

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1018056]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-20 01:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found