cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Multiple download portability?

From: Andreas Volz <lists_at_brachttal.net>
Date: Thu, 27 Dec 2007 16:03:31 +0100

Am Wed, 26 Dec 2007 23:53:44 +0100 (CET) schrieb Daniel Stenberg:

> > Could you tell me what curl does internal while using the file://
> > protocol. Is this a real socket which I could use with select() on
> > Win32 or is it in reality a file handle?
>
> In reality, libcurl will never "expose" the file transfer in the
> multi interface so you'll never get the file descriptor for that
> particular transfer. The file transfer will be done synchronously in
> the file transfer's DO action. This can of course be a long operation
> if you transfer a large file (and a file:// file can indeed even be a
> file on a slow network).
>
> > If this doesn't work on Win32, then I'll redesign my application to
> > use threads for multiple downloads.
>
> It works, but it might not be the best idea anyway.

Why? And which solution would you suggest?

regards
Andreas
Received on 2007-12-27