cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Direct socket IO with libcurl?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 19 Oct 2006 15:20:04 +0200 (CEST)

On Thu, 19 Oct 2006, Nicholas J Humfrey wrote:

> Is there a way of stopping the WriteFunction callback until there is room in
> the buffer?

Sure, if you use the easy inteface you just don't return from the callback
until you're ready to get more data.

If you're using the multi interface, don't call curl_multi_perform() /
curl_multi_socket() until you're ready to get more data.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-10-19