summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-09-13 14:50:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-09-13 14:50:04 +0000
commitdb5c1c61e5ea6f107406a3701be90e925be94eed (patch)
tree240fff252e5cb831d2feae3d742f16391b80e591
parentaa4ff6d8b940ea2e5afb5ffa2fcf434a7d45a019 (diff)
downloadgnurl-db5c1c61e5ea6f107406a3701be90e925be94eed.tar.gz
gnurl-db5c1c61e5ea6f107406a3701be90e925be94eed.tar.bz2
gnurl-db5c1c61e5ea6f107406a3701be90e925be94eed.zip
added curl_easy_duphandle
-rw-r--r--include/curl/easy.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/curl/easy.h b/include/curl/easy.h
index d0e102be9..d3545ffb0 100644
--- a/include/curl/easy.h
+++ b/include/curl/easy.h
@@ -46,6 +46,21 @@ void curl_easy_cleanup(CURL *curl);
*/
CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...);
+
+/*
+ * NAME curl_easy_duphandle()
+ *
+ * DESCRIPTION
+ *
+ * Creates a new curl session handle with the same options set for the handle
+ * passed in. Duplicating a handle could only be a matter of cloning data and
+ * options, internal state info and things like persistant connections cannot
+ * be transfered. It is useful in multithreaded applications when you can run
+ * curl_easy_duphandle() for each new thread to avoid a series of identical
+ * curl_easy_setopt() invokes in every thread.
+ */
+CURL* curl_easy_duphandle(CURL *curl);
+
#ifdef __cplusplus
}
#endif