cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Can the data pointer to CURLOPT_WRITEDATA be the same for various easies in a multi?

From: Michael Menegakis <arxeio_at_gmail.com>
Date: Tue, 7 Dec 2010 13:48:41 +0200

On Tue, Dec 7, 2010 at 1:06 PM, Jeff Pohlmeyer <yetanothergeek_at_gmail.com> wrote:
> On Tue, Dec 7, 2010 at 4:45 AM, Michael Menegakis wrote:
>
>> I was trying to find a way to keep track of easies that may be re-used
>> but not immediately, taking into account their individual chunks for
>> CURLOPT_WRITEDATA, and then it dawned to me I could use the same.
>>
>> Is it safe?
>
>
> I think curl_easy_setopt() with CURLOPT_PRIVATE [1]
> and curl_easy_getinfo() with CURLINFO_PRIVATE [2]
>
> Might be more appropriate for what you are trying to do:
>
>
> [1] http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPRIVATE
> [2] http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html#CURLINFOPRIVATE

Ah, nice, that might work.

(I still wonder if it's safe to share.)
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-07