Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: POE sharing data between sessions

by elwarren (Curate)
on May 17, 2005 at 20:35 UTC ( #457997=note: print w/ replies, xml ) Need Help??


in reply to Re: POE sharing data between sessions
in thread POE sharing data between sessions

Ah ha. Instead of passing my sessiond id, I was passing my session alias to the alias_resolve call. Thanks, that solves one of my problems. I'm going to pass the $session1->ID onto the HEAP during create of $session2.

Still wouldn't mind hearing about heap vs global performance/gotchas if anyone cares to shared.

I've looked around and can't seem to find a way to list my current sessions dynamically. Ideally I was hoping for a solution more like this (completely not real code):

foreach my $sess ( @{ $kernel->get_sessions_named('irc_bot') } ) { print $sess->get_heap()->{USERLIST}; }
TA!


Comment on Re^2: POE sharing data between sessions
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-07-31 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls