cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_perform(hnd) is a synchronous call or asynchronous call

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 12 Jan 2010 08:58:41 +0100 (CET)

On Tue, 12 Jan 2010, Braja Biswal wrote:

> Sorry to ask you these silly questions. I am new to this.

Well, I'd like to kindly ask you to read the docs, a few examples and the
mailing list etiquette before you persue this (the etiquette mostly to better
understand what "no top-posting please" means). We do spend a considerable
amount of time and energy at producing docs for the purpose of them being read
by people seeking answers.

If you really tried to find the answer in the docs but failed, then I'd say we
should work on improving the docs in this aspect to make it clearer so that
the next fellow who tries the same answer will find it easier.

> I want to check, once I call "curl_easy_pause(CURLPAUSE_ALL)", I should not
> get any call backs (header, read, write) Again once I call
> "curl_easy_pause(CURLPAUSE_CONT)", I should get the call backs. (I mean, i
> should get remaining curl_writecallback, once I say CURLPAUSE_CONT )

Yes.

> First of all is it possible to achieve "curl_easy_pause(CURLPAUSE_ALL)" &
> "curl_easy_pause(CURLPAUSE_CONT)", while we are in the middle of the
> execution.

Yes.

> Can I do "curl_easy_perform(hnd)" *asynchronously.*

No. If you need asynchronous behavior, you better switch and use the multi
interface instead.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-12