cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_WRITEDATA Question

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 27 Apr 2004 20:42:37 +0200 (CEST)

On Tue, 27 Apr 2004, Guillaume MARTIN wrote:

> If I use a callback Function ... What is the necessity of the "void *stream"
> ?

You decide. You can for example pass in local data using it.

> It's just a param if I want to use the same callback func for others
> transfer ?

You can do that too, sure.

> If yes, I can put NULL for CURLOPT_WRITEDATA ?

Sure. And if you won't use the argument at all, you can skip CURLOPT_WRITEDATA
completely.

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-04-27