![]() |
![]()
| ![]() |
![]()
NAMECURLMOPT_PUSHDATA - pointer to pass to push callback SYNOPSIS#include <curl/curl.h> CURLMcode curl_multi_setopt(CURLM *handle, CURLMOPT_PUSHDATA, void *pointer); DESCRIPTIONSet a pointer to pass as the last argument to the CURLMOPT_PUSHFUNCTION(3) callback. The pointer is not touched or used by libcurl itself, only passed on to the callback function. DEFAULTNULL PROTOCOLSThis functionality affects http only EXAMPLE#include <string.h> /* only allow pushes for filenames starting with "push-" */ int push_callback(CURL *parent, AVAILABILITYAdded in curl 7.44.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_PIPELINING(3), CURLMOPT_PUSHFUNCTION(3), CURLOPT_PIPEWAIT(3), RFC7540
|