cURL / Mailing Lists / curl-library / Single Mail

curl-library

Calling "curl_multi_add_handle" from within a callback

From: Tsachi <tsachi.kimel_at_gmail.com>
Date: Thu, 8 Jan 2009 12:54:11 +0200

A general question:
(I am using "libcurl 7.19.1" with c-ares 1.5.3 (over linux)).
My application is registered for both CURL_WRITEDATA and
CURL_SOCKOPTDATA callbacks.
When the callbacks are triggered, I want to add new easy handles to my
main multi handle.
Is it OK to use "curl_multi_add_handle" from within the callbacks or
should I do it in my main select loop?

Thanks,
Tsachi
Received on 2009-01-08