libcurl中curl_easy_perform()的源代码在哪里?

时间:2016-06-11 15:57:35

标签: c curl libcurl

我在libcurl源代码树中找不到这个重要函数的源代码。我也没有在curl.h中找到这个函数的定义。既不搜索linux内核github源也不搜索谷歌搜索产生任何东西。

curl_easy_perform()必须在某处定义和实现,或者至少通过某些宏(?)来定义,但是,虽然给出了调用此函数的大量示例,但我没有发现它的实现。有什么想法吗?

1 个答案:

答案 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就在它之前定义。