curl_easy_duphandle   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil
Section: libcurl Manual (3)
Updated: 18 September 2001
Sommaire  



NAME   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil
curl_easy_duphandle - Clone a libcurl session handle  



SYNOPSIS   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil
#include <curl/curl.h>

CURL *curl_easy_duphandle(CURL *handle);

 




DESCRIPTION   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil
This function will return a new curl handle, a duplicate, using all the options previously set in the input curl handle. Both handles can subsequently be used independently and they must both be freed with curl_easy_cleanup(3).

All strings that the input handle has been told to point to (as opposed to copy) with previous calls to curl_easy_setopt(3) using char * inputs, will be pointed to by the new handle as well. You must therefore make sure to keep the data around until both handles have been cleaned up.

The new handle will not inherit any state information, no connections, no SSL sessions and no cookies.

Note that even in multi-threaded programs, this function must be called in a synchronous way, the input handle may not be in use when cloned.  




RETURN VALUE   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil
If this function returns NULL, something went wrong and no valid handle was returned.  



SEE ALSO   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil
curl_easy_init(3),curl_easy_cleanup(3),curl_global_init(3)


 



Sommaire   Début   Suivant   Sommaire   Préc.page.lue   Accueil
NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

Ce document a été créé par man2html suivi de man2html.pl, le 17/10/2008 17:55:20, en utilisant les pages de 'man'.
 

Valid HTML 4.01 Transitional