hurl: getting easy handle from multi:InfoRead()
Posted: Sat Apr 20, 2019 12:40 pm
Hello,
i'am just reading the hurl documentation and compare it with the c api docs from libcurl to gain further insights how to use the plugin.
What i still don't understand is, how do you retrieve the easy handle from the result of multi:InfoRead()
I can identify the resulting variables in the libcurl documentation, but where is the easy handle stored, to which the message belongs ?
i'am just reading the hurl documentation and compare it with the c api docs from libcurl to gain further insights how to use the plugin.
What i still don't understand is, how do you retrieve the easy handle from the result of multi:InfoRead()
Code: Select all
msg, result, remaining = multi:InfoRead()
Code: Select all
#include <curl/curl.h>
CURLMsg *curl_multi_info_read( CURLM *multi_handle, int *msgs_in_queue);
struct CURLMsg {
CURLMSG msg; /* what this message means */
CURL *easy_handle; /* the handle it concerns */
union {
void *whatever; /* message-specific data */
CURLcode result; /* return code for transfer */
} data;
};