monks,

i am sort of re-asking this question. I would really like to be able to start an FTP process and check on its status periodically so that I can continue to update my GUI while my (several and large) files are transferring.

Right now my application only needs to run on Win32, but I am thinking about making it platform-independent. It does look like Win32::Internet will do this via the InternetStatusCallback function. Right now that looks like my best option, as I don't know too much about forking or threading...

Is there a reasonably simple way to use a common module like LWP or Net::FTP to do something like this:

$ftp->start_job; while ($ftp->status != $the_code_for_complete) { update_gui(); }

-ariel

In reply to Asynchronous FTP 2 by ariel2

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.