![]() |
![]()
| ![]() |
![]()
NAMECURLMOPT_TIMERDATA - custom pointer to pass to timer callback SYNOPSIS#include <curl/curl.h> CURLMcode curl_multi_setopt(CURLM *handle, CURLMOPT_TIMERDATA, void *pointer); DESCRIPTIONA data pointer to pass to the timer callback set with the CURLMOPT_TIMERFUNCTION(3) option. This pointer is not touched by libcurl but is only be passed in to the timer callback's clientp argument. DEFAULTNULL PROTOCOLSThis functionality affects all supported protocols EXAMPLEstruct priv { AVAILABILITYAdded in curl 7.16.0 RETURN VALUEcurl_multi_setopt(3) returns a CURLMcode indicating success or error. CURLM_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3). SEE ALSOCURLMOPT_SOCKETFUNCTION(3), CURLMOPT_TIMERFUNCTION(3)
|