cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl byte order

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 18 May 2005 16:37:58 +0200 (CEST)

On Wed, 18 May 2005, ER wrote:

> I'm using the perform call: curl_easy_perform(curl_handle), and the url
> initiates a stream and the app expects a constant stream of data. How does
> (or should) the callback handles it? I mean, is it called constantly since
> there is a constant flow of data? does it make one call to the callback and
> return? Am I even using the correct functions?

The callback gets called when libcurl has received data for the app to take
care of. It will happen over and over again until the transfer is complete.

If it is a stream, it sounds like an endless thing and your callback will be
called until the end of times! ;-)

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-05-18