cURL / Mailing Lists / curl-library / Single Mail


Re: Synchronous access to handles within the multi interface

From: Daniel Stenberg <>
Date: Sat, 17 Dec 2011 15:43:26 +0100 (CET)

On Fri, 16 Dec 2011, Ben LeMasurier wrote:

> I'm working with a threaded application with a single shared
> multi-handle utilizing the hiper interface. Is it possible to
> synchronously wait for completion of a given easy_handle within the
> multi interface?
> CURL *easy = curl_easy_init();
> ...
> curl_multi_add_handle(hiper_handle, easy);
> // wait for `easy` to complete
> // process data from the easy handles CURLOPT_WRITEDATA

Why use the multi interface to start with if you only a synchronous call?

But no, the multi interface is non-blocking so you need to implement a wrapper
function yourself that would do a single transfer in a synchronous way.

List admin:
Received on 2011-12-17