#include <curl/curl.h> CURLSH *curl_share_init( );
If the operation was successful,
CURLESH_OK is returned. Otherwise, a specific
CURLSH libcurl Error Code is returned. If this function
NULL, an issue occurred (out of memory, etc.) and the share object was not created.
Create a shared object. This function returns a
CURLSH handle to be used as input to all the other share-functions. The
CURLSH handle is occasionally referred to as a 'share handle' in the documentation.
This initialization call must have a corresponding call to
curl_share_cleanup when all operations using the share are complete.
This share handle is passed to curl using the
CURLOPT_SHARE option with
curl_easy_setopt, to make that specific curl handle
use the data in this share.
2013/05/08 Automated cleanup pass.
2012/05/04 Initial version.