On Thu, Jun 21, 2001 at 05:06:51PM -0400, [EMAIL PROTECTED] wrote:
> I don't think POE has much of this. I would like to get a list of all
> current sessions (probably a list of IDs), then query for, with aliases
> and current states. Something like :
>
> @ids=$kernel->session_list();
Useful and not without precedent. See /bin/ps almost anywhere.
> @events=$kernel->session_evnets($ids[0]);
I'm against this one. Sessions' privacy has always been a major
design goal. If a session wants you to know what's in it, it should
include something to tell you when you ask nicely. That way, also,
you don't find things it never wanted you to see in the first place.
And anyway, sessions keep to themselves. The Kernel doesn't know
which events they can handle.
> @aliases=$kernel->alias_list($ids[0]); # does this currently work?
alias_list() should work in 0.1403 or so. Maybe I haven't released it
yet; check the CHANGES file.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net