cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl with sendfile

From: Brian McQueen <mcqueenorama_at_gmail.com>
Date: Mon, 10 Mar 2008 14:19:34 -0700

Yes, I mean downloads, from socket to disk. I thought I could connect
any two file descriptors, wether it be one is to a socket or one is to
a disk. For now it doesn't matter anyway, I'll need to go ahead with
making my own large write buffer and filling it up.

Thanks

On Mon, Mar 10, 2008 at 2:05 PM, Jamie Lokier <jamie_at_shareable.org> wrote:
> Brian McQueen wrote:
> > I'm doing many huge downloads via libcurl and sendfile would be useful
> > in that instance.
>
> Do you mean downloads (read from network, write to disk) or _uploads_
> (read from disk, write to network)?
>
> Sendfile only works in one direction. It can't be used for what's
> normally called downloads.
>
> -- Jamie
>
Received on 2008-03-10