我在libcurl源代码树中找不到这个重要函数的源代码。我也没有在curl.h中找到这个函数的定义。既不搜索linux内核github源也不搜索谷歌搜索产生任何东西。
curl_easy_perform()必须在某处定义和实现,或者至少通过某些宏(?)来定义,但是,虽然给出了调用此函数的大量示例,但我没有发现它的实现。有什么想法吗?
答案 0 :(得分:2)
它在easy.c
t2.status
我发现这是通过转到cURL github存储库并将/*
* curl_easy_perform() is the external interface that performs a blocking
* transfer as previously setup.
*/
CURLcode curl_easy_perform(CURL *easy)
{
return easy_perform(easy, FALSE);
}
放入搜索字段(只搜索CURLcode curl_easy_perform
有太多匹配,因为它找到所有引用的测试和文档代码功能,而不仅仅是定义。)
curl_easy_perform
就在它之前定义。