![]() |
![]()
| ![]() |
![]()
NAMECURLMOPT_SOCKETDATA - custom pointer passed to the socket callback SYNOPSIS#include <curl/curl.h> CURLMcode curl_multi_setopt(CURLM *handle, CURLMOPT_SOCKETDATA, void *pointer); DESCRIPTIONA data pointer to pass to the socket callback set with the CURLMOPT_SOCKETFUNCTION(3) option. This pointer is not touched by libcurl but is only passed in as the socket callback's clientp argument. DEFAULTNULL PROTOCOLSThis functionality affects all supported protocols EXAMPLEstruct priv { AVAILABILITYAdded in curl 7.15.4 RETURN VALUEReturns CURLM_OK. SEE ALSOCURLMOPT_SOCKETFUNCTION(3), CURLMOPT_TIMERFUNCTION(3), curl_multi_socket_action(3)
|