Movatterモバイル変換


[0]ホーム

URL:


API Overview
Docs
API: easyAPI: multiAPI: shareAPI: URLAPI: WebSocketEnvironment varsErrorsExamplesSecuritySymbolsTutorial
easy setopt optionseasy getinfo optionsmulti setopt optionsTLS options
Functions
All functionscurl_easy_getinfocurl_easy_initcurl_easy_performcurl_easy_resetcurl_easy_setoptcurl_multi_add_handlecurl_multi_initcurl_multi_performcurl_multi_remove_handlecurl_multi_setopt
curl /libcurl /API /curl_share_setopt

curl_share_setopt - set options for a shared object

Related:
easy options
getinfo options
multi options
Symbols
File a bug about this page
View manpage source

Name

curl_share_setopt - set options for a shared object

Synopsis

#include <curl/curl.h> CURLSHcodecurl_share_setopt(CURLSH *share, CURLSHoption option, parameter);

Description

Set theoption toparameter for the givenshare.

Options

CURLSHOPT_LOCKFUNC

SeeCURLSHOPT_LOCKFUNC.

CURLSHOPT_UNLOCKFUNC

SeeCURLSHOPT_UNLOCKFUNC.

CURLSHOPT_SHARE

SeeCURLSHOPT_SHARE.

CURLSHOPT_UNSHARE

SeeCURLSHOPT_UNSHARE.

CURLSHOPT_USERDATA

SeeCURLSHOPT_USERDATA.

Protocols

This functionality affects all supported protocols

Example

int main(void){  CURLSHcode sh;  CURLSH *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));}

Availability

Added in curl7.10

Return value

CURLSHE_OK (zero) means that the option was set properly, non-zero means an error occurred as<curl/curl.h> defines. See thelibcurl-errors man page for the full list with descriptions.

See also

curl_share_cleanup(3),curl_share_init(3)

This HTML page was made withroffit.


[8]ページ先頭

©2009-2025 Movatter.jp