I really don't know much details about networking, but there is 23 packages on CPAN when I search for dhcp dhcp, there is probably one for your use there.

Now, waiting is one of those thing you actually can do a lot of at any instance, so threads or multiple proccesses (fork) makes a lot of sense in this case. To know what your results tell you, you will have to exercise fine controll over the number of concurrent requests to the server, i.e. how often to send another request, Time::HiRes can help with that.

Try to start programming, and post code and direct questions if/when you're stuck.

Update: After reading BrowserUk's answer right above; forget what I wrote here and study sundialsvc4's ansver in that other thread. It's very good. cheers


In reply to Re^5: multi threading by stiller
in thread multi threading by mude

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.