~ubuntu-branches/ubuntu/dapper/curl/dapper-updates

« back to all changes in this revision

Viewing changes to docs/libcurl/curl_easy_duphandle.3

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
.\" You can view this file with:
2
2
.\" nroff -man [file]
3
 
.\" $Id: curl_easy_duphandle.3,v 1.1 2002/03/04 10:09:49 bagder Exp $
 
3
.\" $Id: curl_easy_duphandle.3,v 1.4 2004/04/13 09:08:52 bagder Exp $
4
4
.\"
5
5
.TH curl_easy_duphandle 3 "18 September 2001" "libcurl 7.9" "libcurl Manual"
6
6
.SH NAME
7
7
curl_easy_duphandle - Clone a libcurl session handle
8
8
.SH SYNOPSIS
9
9
.B #include <curl/curl.h>
10
 
.sp
 
10
 
11
11
.BI "CURL *curl_easy_duphandle(CURL *"handle ");"
12
 
.ad
 
12
 
13
13
.SH DESCRIPTION
14
14
This function will return a new curl handle, a duplicate, using all the
15
15
options previously set in the input curl \fIhandle\fP. Both handles can
16
16
subsequently be used independently and they must both be freed with
17
 
\fIcurl_easy_cleanup()\fP.
 
17
\fIcurl_easy_cleanup(3)\fP.
18
18
 
19
19
All strings that the input handle has been told to point to (as opposed to
20
 
copy) with previous calls to \fIcurl_easy_setopt\fP using char * inputs, will
21
 
be pointed to by the new handle as well. You must therefore make sure to keep
22
 
the data around until both handles have been cleaned up.
 
20
copy) with previous calls to \fIcurl_easy_setopt(3)\fP using char * inputs,
 
21
will be pointed to by the new handle as well. You must therefore make sure to
 
22
keep the data around until both handles have been cleaned up.
23
23
 
24
24
The new handle will \fBnot\fP inherit any state information, no connections,
25
25
no SSL sessions and no cookies.
26
26
 
27
27
\fBNote\fP that even in multi-threaded programs, this function must be called
28
28
in a synchronous way, the input handle may not be in use when cloned.
29
 
 
30
 
This function was added in libcurl 7.9.
31
29
.SH RETURN VALUE
32
30
If this function returns NULL, something went wrong and no valid handle was
33
31
returned.
34
32
.SH "SEE ALSO"
35
33
.BR curl_easy_init "(3)," curl_easy_cleanup "(3)," curl_global_init "(3)
36
 
.SH BUGS
37
 
Surely there are some, you tell me!
 
34