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 21:11:15 +0100

Am Thu, 27 Dec 2007 16:03:31 +0100 schrieb Andreas Volz:

> 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?

Please, if you know a reason why not to use it with threads, then
please tell me. I like to prevent porting problems as early as possible.

regards
Andreas
Received on 2007-12-27