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

NAME

6       curl_share_init - Create a shared object
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLSH *curl_share_init( );
12

DESCRIPTION

14       This  function  returns  a CURLSH handle to be used as input to all the
15       other share-functions, sometimes referred to as a share handle in  some
16       places  in  the documentation. This init call MUST have a corresponding
17       call to curl_share_cleanup when all operations using the share are com‐
18       plete.
19
20       This  share  handle is what you pass to curl using the CURLOPT_SHARE(3)
21       option with curl_easy_setopt(3), to make that specific curl handle  use
22       the data in this share.
23

RETURN VALUE

25       If  this  function  returns  NULL, something went wrong (out of memory,
26       etc.)  and therefore the share object was not created.
27

SEE ALSO

29       curl_share_cleanup(3), curl_share_setopt(3)
30
31
32
33libcurl 7.66.0                September 23, 2018            curl_share_init(3)
Impressum