cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: multiple threads

From: kuriakose <kuriakose_at_huawei.com>
Date: Thu, 17 Aug 2006 12:17:13 +0530

>Each single transfer connects to the server and performs the operation.
I know this fact.

>You can however of
>course tell libcurl to (attempt to) download multiple things from the
>same server.
        
I have used multi -interface for this purpose where for each transfer a
separate connection to the server is made . Is there a way to maintain just
1 connection and download multiple files (say from Filezilla . In fact
Filezilla supports 50 threads )

Thanks in advance..

-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Thursday, August 17, 2006 11:58 AM
To: kuriakose_at_huawei.com; libcurl development
Subject: Re: multiple threads

On Thu, 17 Aug 2006, kuriakose wrote:

> In libcurl when we use multi-interface and specify the no of handles , as
> many no of connections are made to the server ( say Filezilla ftp server).

Have you read the docs? Each easy handle added to a multi handle will make a

transfer. Each single transfer connects to the server and performs the
operation.

> Now how do we make multiple threads in the server through libcurl .

You can't assume that the server uses threads at all. You can however of
course tell libcurl to (attempt to) download multiple things from the same
server.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-08-17