-
-
Notifications
You must be signed in to change notification settings - Fork 11
libcURL.cURLHandle
libcURL.cURLHandle
Public Class cURLHandle
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.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.