curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: curl_mime_data_cb() with curl_easy_duphandle()

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 7 Jan 2020 16:26:12 +0100 (CET)

On Mon, 6 Jan 2020, Christoph M. Becker via curl-library wrote:

> I do not understand, though, how it could be possible to deal with
> handle-specific data in the arg structure, since I'm not aware how to
> determine which cURL handle had called any of the callbacks. What am I
> missing?

Since there's a custom pointer provided for the callbacks, you always have the
ability to pass in exactly whatever you want. That could include an identifier
for transfer or a CURL handle pointer.

-- 
  / daniel.haxx.se | Get the best commercial curl support there is - from me
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-01-07