![]() |
![]()
| ![]() |
![]()
NAMECURLOPT_CLOSESOCKETDATA - pointer passed to the socket close callback SYNOPSIS#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CLOSESOCKETDATA, DESCRIPTIONPass a pointer that remains untouched by libcurl and passed as the first argument in the closesocket callback set with CURLOPT_CLOSESOCKETFUNCTION(3). DEFAULTNULL PROTOCOLSThis functionality affects all supported protocols EXAMPLEstruct priv { AVAILABILITYAdded in curl 7.21.7 RETURN VALUEcurl_easy_setopt(3) returns a CURLcode indicating success or error. CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3). SEE ALSOCURLOPT_CLOSESOCKETFUNCTION(3), CURLOPT_OPENSOCKETFUNCTION(3)
|