Re: Asynchronous FTP Upload [message #172055 is a reply to message #172053] |
Fri, 28 January 2011 15:56 |
duderion
Messages: 3 Registered: January 2011
Karma:
|
Junior Member |
|
|
Hi Jerry
thanks for the quick and nice reply,
i need to do this, because i have to trasfer videos to around 500
hosts during one night. i have a 1gb upload line, and thats why i want
to run those uploads simultaniously....
On Jan 28, 4:29 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> On 1/28/2011 10:12 AM, duderion wrote:
>
>> hi guys,
>
>> could anyone tell me how i can handle an ftp upload to several servers
>> at once?
>
>> I found fb_nb_put, but i dont know how to combine 5 connections with
>> this.
>
>> any help would be nice :)
>
>> dude
>
> You'll need to open 5 different streams and start each transfer. Keep
> track of the status of each transfer in an array and loop while any of
> them need to continue. In the loop, continue those which have not finished.
>
> Not sure what this is going to do though for you though, other than take
> a lot of unnecessary CPU because you're effectively polling constantly.
> Why don't you just upload each file individually?
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================
|
|
|