Skip to content
Andrew Lambert edited this page Jun 7, 2015 · 13 revisions

libcURL.cURLHandle

##Class Declaration

 Protected Class libcURL.cURLHandle

##Notes Versions of libcURL prior to 7.15.2 require that curl_global_init and curl_global_cleanup be called exactly once. Multiple calls may cause strange behavior and should be avoided. Newer versions do not have this problem, however multiple calls still ought to be avoided.

This is an abstract class that wraps these calls in the Constructor and Destructor methods: it keeps track of how many times curl_global_init has been called with a particular flag, and ensures that for each curl_global_init call there is a curl_global_cleanup call. It minimizes the number of calls to curl_global_init but does NOT guarantee that it will be called only once.

In addition, this class provides read and write access to certain libcURL variables common to all subclasses such as the curl handle and last error values.

##Subclasses

##Methods

Clone this wiki locally