Greetings Monks! I'm new as a user but not new to PM or programming (it has helped countless times in recent weeks during some tough projects!) and I am hoping that the wealth of knowledge here can assist with a problem I can't seem to wrap my head around!

I am trying to create workflow of sorts which uses socket connections to relay extracted MySQL data from localhost to LAN server and vice versa. I was successfully able to create each individual .pl file (8 files in all) and extract information through each file as necessary.

The part I am stuck on regards the actual socket connection for them to relay the data to the server. My concern is creating a bottleneck of sorts if (in the worst case scenario) all 8 files were to try sending data over the socket at the same time. Is it possible/sensible to create a separate file just containing socket information and allow that socket file to handle the relay for all files? If so, how could it be achieved? Is there another method that makes more sense?


In reply to Multiple Perl files sharing a single socket - is it possible/sensible? by ljamison

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.