CURLOPT_CLOSESOCKETFUNCTION (3) Linux Manual Page
CURLOPT_CLOSESOCKETFUNCTION – callback to socket close replacement function Synopsis#include <curl/curl.h> int closesocket_callback(void *clientp, curl_socket_t item); CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CLOSESOCKETFUNCTION, closesocket_callback); DescriptionPass a pointer to your callback function, which should match the prototype shown above. This callback function gets called by libcurl instead of the close(3) or closesocket(3) call when sockets are closed (not for any…
