cURL / Mailing Lists / curl-library / Single Mail

curl-library

Simultaneous FTP actions

From: pcworld <0188801_at_googlemail.com>
Date: Sat, 22 Jan 2011 16:17:47 +0100

Hello!

I'm writing an (interactive) application with a GUI for a Linux OS.
In my code I have functions for
moving/deleting/listing/downloading/uploading a file/directory.

For example, if a user wants to download a big file (so he presses a
button) and while the file is downloading he wants to delete another
file, he shouldn't wait until the big file is downloaded, so the second
file should be deleted *while* the first file is downloading.
I looked at FileZilla's debug output and it seems that there is no
second FTP connection to the server needed.

My question is: How can I do this with libcurl, since I can't share one
handle with multiple threads? Or do I have to use multiple connections
to the FTP server? This could be a problem if the number of connections
(from one IP address) to the server is limited.

Any ideas?
Best regards
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-22