One thing I haven't yet seen mentioned elsewhere in this thread is use of IO::Socket::IP, which can be used as a drop-in replacement for the more outdated IO::Socket::INET class. The newer version supports IPv6, so the only real reason to use the IPv4-only outdated version is when you're using a version of Perl before 5.20 (or need to maintain compatibility) and are unable to use the CPAN version of IO::Socket::IP.

Even if you don't have a current need to support IPv6, you make future expansion harder, and in today's Internet where IPv6 is (finally!) becoming more common, it's getting far harder to ignore. There's often little reason to avoid use of IO::Socket::IP since it supports both IPv4 and IPv6, and is also usable with the family-neutral functions provided by the Socket library (such as Socket::getaddrinfo.)

Consider if there's a good reason you want to write non-portable code that assumes IPv4 will be (exclusively) used everywhere your code will be.


In reply to Re: Bidirectional Client/Server - to fork or not to fork? by Apero
in thread Bidirectional Client/Server - to fork or not to fork? 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.