1CURLSHOPT_UNSHARE(3)            libcurl Manual            CURLSHOPT_UNSHARE(3)
2
3
4

NAME

6       CURLSHOPT_UNSHARE - remove data to share
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_UNSHARE, long type);
12

DESCRIPTION

14       The  type  parameter specifies what specific data that should no longer
15       be  shared  and  kept  in  the  share  object  that  was  created  with
16       curl_share_init(3).  In  other  words,  stop  sharing that data in this
17       shared object. The given type must be be one of  the  values  described
18       below.  You  can set CURLSHOPT_UNSHARE(3) multiple times with different
19       data arguments to remove multiple types from  the  shared  object.  Add
20       data to share again with CURLSHOPT_SHARE(3).
21
22       CURL_LOCK_DATA_COOKIE
23              Cookie data will no longer be shared across the easy handles us‐
24              ing this shared object.
25
26       CURL_LOCK_DATA_DNS
27              Cached DNS hosts will be no longer be  shared  across  the  easy
28              handles using this shared object.
29
30       CURL_LOCK_DATA_SSL_SESSION
31              SSL session IDs will no longer be shared across the easy handles
32              using this shared object.
33
34       CURL_LOCK_DATA_CONNECT
35              The connection cache is no longer shared.
36
37       CURL_LOCK_DATA_PSL
38              The Public Suffix List is no longer shared.
39

PROTOCOLS

41       All
42

EXAMPLE

44         CURLSHcode sh;
45         share = curl_share_init();
46         sh = curl_share_setopt(share, CURLSHOPT_UNSHARE, CURL_LOCK_DATA_COOKIE);
47         if(sh)
48           printf("Error: %s\n", curl_share_strerror(sh));
49

AVAILABILITY

51       Added in 7.10
52

RETURN VALUE

54       CURLSHE_OK (zero) means that the  option  was  set  properly,  non-zero
55       means  an  error occurred. See libcurl-errors(3) for the full list with
56       descriptions.
57

SEE ALSO

59       CURLSHOPT_SHARE(3),    curl_share_setopt(3),     curl_share_cleanup(3),
60       curl_share_init(3)
61
62
63
64libcurl 8.0.1                  January 02, 2023           CURLSHOPT_UNSHARE(3)
Impressum