curl-library
Re: Can the data pointer to CURLOPT_WRITEDATA be the same for various easies in a multi?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 7 Dec 2010 13:49:45 +0100 (CET)
Date: Tue, 7 Dec 2010 13:49:45 +0100 (CET)
On Tue, 7 Dec 2010, 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?
From libcurl's view it is perfectly safe and it won't have a problem with it.
It is up to your app to make sense of the data you pass into the callback that
way.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-12-07