📄 curl_share_setopt.3
字号:
.\" $Id: curl_share_setopt.3,v 1.1 2003/08/11 07:25:02 bagder Exp $.\".TH curl_share_setopt 3 "8 Aug 2003" "libcurl 7.10.7" "libcurl Manual".SH NAMEcurl_share_setopt - Set options for a shared object.SH SYNOPSIS.B #include <curl/curl.h>.spCURLSHcode curl_share_setopt(CURLSH *share, CURLSHoption option, parameter);.ad.SH DESCRIPTIONSet the \fIoption\fP to \fIparameter\fP for the given \fIshare\fP..SH OPTIONS.TP 0.4i.B CURLSHOPT_LOCKFUNCThe \fIparameter\fP must be a pointer to a function matching the followingprototype:void lock_function(CURL *handle, curl_lock_data data, curl_lock_access access,void *userptr);\fIdata\fP defines what data libcurl wants to lock, and you must make sure thatonly one lock is given at any time for each kind of data.\fIaccess\fP defines what access type libcurl wants, shared or single.\fIuserptr\fP is the pointer you set with \fICURLSHOPT_USERDAT\fP..TP.B CURLSHOPT_UNLOCKFUNChej.TP.B CURLSHOPT_SHAREhej.TP.B CURLSHOPT_UNSHAREhej.TP.B CURLSHOPT_USERDATAhej.PP.SH RETURN VALUEIf this function returns non-zero, something was wrong!.SH "SEE ALSO".BR curl_share_cleanup "(3), " curl_share_init "(3)"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -