cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURL_EASY_PERFORM non-blocking vs blocking

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 19 Mar 2015 09:56:46 +0100 (CET)

On Wed, 18 Mar 2015, Jon wrote:

> I'm currently using CURL_EASY_PERFORM to send data to a remote URL. I notice
> that in my current configuration it appears to be behaving synchronously
> (i.e. waiting until completion of function). Since at times I may have
> several of these calls executing within a short duration I'd like to make
> this call asynch. Is this possible and if so can someone please advise on
> how to do it?

The "easy" interface is blocking the "multi" interface is non-blocking:

Start here:
   http://curl.haxx.se/libcurl/c/libcurl-multi.html

There are several examples in that section:
   http://curl.haxx.se/libcurl/c/example.html

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-19