I am definately a newbie here. My IO::Socket program listens for incoming messages, processes them and then waits for the next. My cliet program gets executed lots of times (it's a message processor driven by incoming events - so each new event is a new copy of the sender program) My question is what exactly happens when the client kicks twice in a very very short period of time. If I understand IO:Socket correctly, and I am using TCP, the second copy of the program will wait (or the data will be buffered) until the first copy of hte problem and thus the first buffer is processed. I have set Listen parameter to 5 and I perform Autoflush(1) on each receipt of a buffer. Code example available but I'm just asking for explanation on how it works. What I am seeing is the packets are on the wire for two events but the receviing program only sees one buffer. This is a very simple environment. The server runs "like" a daemon and the client executes each time a new messge is received. I only see squirrely results when the messages arrive very close together.

In reply to Multiple clients to one server by Anonymous Monk

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.