Sending event to interested sessions

John <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
Sorry if this is a basic one...

I have a UI session that spawns a TCP client session (P::C::C::TCP).  This client session will be emitting events primarily for the UI, but I do not want to "hardcode" the name of the ui session in the TCP client session.

Upon creating the TCP clent I can pass the UI session name (I assume) and use that as the session name in $kernel->post.  But what if there are also other sesions that are interested in the events?

Is there a clean way of handling this?

Thanks,

John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.