Just another Perl shrine | |
PerlMonks |
Re: POE: post an event on tcp server from a sessionby Solo (Deacon) |
on Jul 26, 2005 at 13:01 UTC ( [id://478163]=note: print w/replies, xml ) | Need Help?? |
Typo in the event name.
Correcting that leads to a newer problem, though.
But the event names look correct in this case, so InlineStates must not behave the way you expect in this component. Looking at the source for POE::Component::Server::TCP it seems the InlineStates are not added to the 'listener' PoCo::Server::TCP session, but only to sessions spawned by the default Acceptor handler which is used when one is not provided by the caller. In any case, the session 'TOF' would not get the InlineStates, it's children would. There doesn't seem to be an easy way to add additional states to the listener at creation. But I only took a quick look at the source.
--Solo
In Section
Seekers of Perl Wisdom
|
|