Jenda has asked for the wisdom of the Perl Monks concerning the following question:
Hello everyone. In a service (for the Unix folk: daemon) I am copying lots of smallish files with FTP (using Net::FTP). I'm copying them one by one which takes a lot of time so I'd like to speed it up by opening several connections and sending several files at once. I tried to use Win32::Internet asynchronously, but wasn't able to get anywhere.
Did anyone try succeed to FTP with Win32::Internet asynchronously? Or with some other module?
I can fork() in the service and create a few worker threads (yeah, it'd be threads only under Win32) and pipe them the names of the files to send (I have done this kind of thing already), but I'd like to know if there is an easier solution.
I'm using ActivePerl v5.6.1 build 631 under Win2k Pro&Server
Thanks, Jenda
== Jenda@Krynicky.cz == http://Jenda.Krynicky.cz ==
Always code as if the guy who ends up maintaining your code
will be a violent psychopath who knows where you live.
-- Rick Osborne, osborne@gateway.grumman.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Asynchronous FTP
by yodabjorn (Monk) on May 20, 2002 at 23:34 UTC | |
by Jenda (Abbot) on May 21, 2002 at 12:43 UTC | |
|
Re: Asynchronous FTP
by Aristotle (Chancellor) on May 21, 2002 at 19:30 UTC | |
by Jenda (Abbot) on May 21, 2002 at 19:47 UTC | |
by Aristotle (Chancellor) on May 21, 2002 at 22:37 UTC | |
by Jenda (Abbot) on May 22, 2002 at 22:26 UTC | |
by Aristotle (Chancellor) on May 23, 2002 at 04:35 UTC | |
|