Re: Why post to specifc sessions?

[email protected] (Nicholas Perez) Sun, 01 May 2011 22:49:21 -0500
Newsgroups perl.poe
Message-ID <[email protected]> 5717612E-746F-11E0-95C1-E8AB60295C12-25677834!a-pb-sasl-sd.pobox.com
This is precisely the angle that Reflex tries to tackle. Setup objects that watch for particular events and others that emit them without concern for who is listening. So please check out Reflex and see if that higher level functionality fits your needs.

--
Nicholas Perez 
XMPP/Email: [email protected] 
http://search.cpan.org/~nperez/
http://github.com/nperez

"John R." <[email protected]> wrote:

I have a POE based app that I find I am adding new sessions as I add functionality. I am at the point where a new session generates an event of interest. So, to let my ui get the event (from the new session): 	$kernel->post( 'ui', 'change_series', 'Auto' ); Since in my 'ui' session I need to define the handler, why do I need to indicate the target session in the call to post? Why can't I just send it into the event loop and have any session configured to handle it do so? Thanks, John