cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: non-blocking read function

From: Georg Lippitsch <georg.lippitsch_at_gmx.at>
Date: Tue, 30 Oct 2007 23:48:10 +0100

Am Dienstag, 30. Oktober 2007 22:28 schrieb Daniel Stenberg:

> Why 0? Why not just a CURL_MAGIC_READ_IS_NOW_PAUSED define, that certainly
> won't cause any backwards compatibility issues?

Because 0 is IMO the most logical approach.
As documentation says: "Your function must return the actual number of bytes
that you stored in that memory area"
So, if I don't store any bytes in that memory area right now, consequently 0
is the correct value to return.
Received on 2007-10-30