Typo in the event name.

inline_states => { ... Send_updates => \&send_update, ... # later $kernel->yield('Send_update');

Correcting that leads to a newer problem, though.

a 'Update_clients' event was sent from pmtest.pl at 57 to session 2 (T +OF) but session 2 (TOF) has neither a handler for it nor one for _default

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

--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.

In reply to Re: POE: post an event on tcp server from a session by Solo
in thread POE: post an event on tcp server from a session by tsvikt

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.