]> granicus.if.org Git - curl/commitdiff
added CURLOPT_SHARE
authorDaniel Stenberg <daniel@haxx.se>
Wed, 25 Feb 2004 12:20:41 +0000 (12:20 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 25 Feb 2004 12:20:41 +0000 (12:20 +0000)
docs/libcurl/curl_easy_setopt.3

index 7ecfac1d7e8f16321ea60db9ebbed2a381d3d2b5..b62341fe2abe25eed649ad063480ce124bd0faa7 100644 (file)
@@ -21,7 +21,7 @@
 .\" * $Id$
 .\" **************************************************************************
 .\"
-.TH curl_easy_setopt 3 "22 Jan 2004" "libcurl 7.11.1" "libcurl Manual"
+.TH curl_easy_setopt 3 "25 Feb 2004" "libcurl 7.11.1" "libcurl Manual"
 .SH NAME
 curl_easy_setopt - set options for a curl easy handle
 .SH SYNOPSIS
@@ -882,6 +882,13 @@ Pass a char * as parameter, pointing to data that should be associated with
 this curl handle.  The pointer can subsequently be retrieved using
 \fIcurl_easy_getinfo\fP with the CURLINFO_PRIVATE option. libcurl itself does
 nothing with this data. (Added in 7.10.3)
+.IP CURLOPT_SHARE
+Pass a share handle as a parameter. The share handle must have been created by
+a previous call to curl_share_init(). Setting this option, will make this curl
+handle use the data from the shared handle instead of keeping the data to
+itself. This enables several curl handles to share data. If the curl handles
+are used simultaneously, you \fBMUST\fP use the locking methods in the share
+handle. See \fIcurl_share_setopt(3)\fP for details.
 .SH RETURN VALUE
 CURLE_OK (zero) means that the option was set properly, non-zero means an
 error occurred as \fI<curl/curl.h>\fP defines. See the \fIlibcurl-errors.3\fP