cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: working on a new API

From: Steve Dekorte <steve_at_dekorte.com>
Date: Sat, 27 Oct 2001 14:33:11 -0700

  Ben Greear wrote:
> The getSomeBytes is the read callback, so user code can either be
> reading
> from disk or doing any other special stuff to get bytes there fast and
> efficient. The read callback should never read more than some fixed
> amount,
> and that amount is probably 32k or less. It definately isn't 1MB.

> So basically, the curl handle should never block long on a file read
> because
> it should never try to read the whole file at once (NFS of course can
> screw
> things up...but that's a special case.)

Oh yeah, I forgot about the read/write callbacks. You're right, the user
can deal with the read/write size in there. Btw, it would be nice if
curl had default handlers for reading&writing to memory and disk.

Steve
Received on 2001-10-27