Manual Pages for UNIX Darwin command on man curl_share_setopt
MyWebUniversity

Manual Pages for UNIX Darwin command on man curl_share_setopt

curlsharesetopt(3) libcurl Manual curlsharesetopt(3)

NAME

curlsharesetopt - Set options for a shared object

SYNOPSIS

##iinncclluuddee <>

CURLSHcode curlsharesetopt(CURLSH *share, CURLSHoption option, param-

eter);

DESCRIPTION

Set the option to parameter for the given share. OOPPTTIIOONNSS CURLSHOPTLOCKFUNC

The parameter must be a pointer to a function matching the fol-

lowing prototype: void lockfunction(CURL *handle, curllockdata data, curllockaccess access, void *userptr); data defines what data libcurl wants to lock, and you must make sure that only one lock is given at any time for each kind of data. access defines what access type libcurl wants, shared or single. userptr is the pointer you set with CURLSHOPTUSERDATA. CURLSHOPTUNLOCKFUNC

The parameter must be a pointer to a function matching the fol-

lowing prototype: void unlockfunction(CURL *handle, curllockdata data, void *userptr); data defines what data libcurl wants to unlock, and you must make sure that only one lick is given at any time for each kind of data. userptr is the pointer you set with CURLSHOPTUSERDATA. CURLSHOPTSHARE The parameter specifies a type of data that should be shared. This may be set to one of the values described below. CURLLOCKDATACOOKIE Cookie data will be shared across the easy handles using this shared object. CURLLOCKDATADNS Cached DNS hosts will be shared across the easy handles using this shared object. CURLSHOPTUNSHARE This option does the opposite of CURLSHOPTSHARE. It specifies that the specified parameter will no longer be shared. Valid values are the same as those for CURLSHOPTSHARE. CURLSHOPTUSERDATA The parameter allows you to specify a pointer to data that will passed to the lockfunction and unlockfunction each time it is called. RREETTUURRNN VVAALLUUEE

CURLSHEOK (zero) means that the option was set properly, non-zero

means an error occurred as defines. See the libcurl-

errors.3 man page for the full list with descriptions.

SEE ALSO

ccuurrllsshhaarreecclleeaannuupp(3), ccuurrllsshhaarreeiinniitt(3) libcurl 7.10.7 8 Aug 2003 curlsharesetopt(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™