cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Real-time data transfer: curl_easy_pause?

From: Julien <eldebaran_at_gmail.com>
Date: Wed, 28 Sep 2011 14:36:10 +0200

On 28 September 2011 14:18, Daniel Stenberg <daniel_at_haxx.se> wrote:
>> You mean that I just have to block in the read callback until some more
>> data is available? Do you confirm that I have to dedicate a thread to this?
>
> When you're downloading data, there won't be any read callback called.
> libcurl will just read from the socket (network data stream) and deliver
> data to the write callback as soon as there is data to deliver. So yes,
> libcurl will sit waiting for data until data arrives. Then act and then go
> back to waiting. Until done.

Oops, I may have confused you writing about CURL_WRITEFUNC_PAUSE in my
first message. I am not downloading but uploading data. This data is
becoming available through an internal process over which I have no
control, and I am sending this data through libcurl API. Is it OK to
block in the read callback until some more data is available in this
case?

Thank you,
Julien
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-28