![]() |
![]()
| ![]() |
![]()
NAMECURLOPT_SOCKOPTDATA - pointer to pass to sockopt callback SYNOPSIS#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SOCKOPTDATA, void *pointer); DESCRIPTIONPass a pointer that is untouched by libcurl and passed as the first argument in the sockopt callback set with CURLOPT_SOCKOPTFUNCTION(3). DEFAULTNULL PROTOCOLSThis functionality affects all supported protocols EXAMPLEstatic int sockopt_callback(void *clientp, curl_socket_t curlfd, AVAILABILITYAdded in curl 7.16.0 RETURN VALUEReturns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSOCURLOPT_OPENSOCKETFUNCTION(3), CURLOPT_SOCKOPTFUNCTION(3)
|