curl_share_init - Online Linux Manual PageSection : 3
Updated : January 05, 2022
Source : libcurl 7.82.0
Note : libcurl Manual
NAMEcurl_share_init - Create a shared object
SYNOPSIS#include <curl/curl.h>
CURLSH *curl_share_init();
DESCRIPTIONThis function returns a CURLSH handle to be used as input to all the other share-functions, sometimes referred to as a share handle in some places in the documentation. This init call MUST have a corresponding call to curl_share_cleanup when all operations using the share are complete. This share handle is what you pass to curl using the CURLOPT_SHARE(3) option with curl_easy_setopt(3), to make that specific curl handle use the data in this share.
EXAMPLE CURLSHcode sh
share = curl_share_init();
sh = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
if(sh)
printf("Error: %s\n", curl_share_strerror(sh));
AVAILABILITYAdded in 7.10
RETURN VALUEIf this function returns NULL, something went wrong (out of memory, etc.) and therefore the share object was not created.
SEE ALSOcurl_share_cleanup(3), curl_share_setopt (3)" 0
Johanes Gumabo
Data Size : 4,429 byte
man-curl_share_init.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 181,178
Visitor ID : :
Visitor IP : 18.220.7.116 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (rof_nr_x|149|curl_share_init.3|47|\n", curl_share_strerror(sh));| printf("Error: %s\\n", curl_share_strerror(sh));
)