curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Ending libcurl when EVT_QUERY_END_SESSION received

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 26 Sep 2018 11:00:40 +0200 (CEST)

On Tue, 25 Sep 2018, acorn12 via curl-library wrote:

> Looking through the error codes fro libcurl, I cannot find any way to ensure
> that the error code I am intending to return from the callbacks will not
> conflict with any other libcurl error code.

CURLE_ABORTED_BY_CALLBACK ?

If that's not good enough, all callbacks get a custom private pointer passed
in to them so you can easily set your own flag/error code in your own structs
to pass on whatever data you need.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-09-26