gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 07:01:24 26 4
gpt4 key购买 nike

我在 libcurl 源代码树中找不到这个重要功能的源代码。我也没有在 curl.h 中找到此函数的定义。对 linux 内核 github 源代码的搜索和多个谷歌搜索都没有产生任何结果。

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

最佳答案

它在 easy.c

/*
* 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);
}

我通过转到 cURL github 存储库并将 CURLcode curl_easy_perform 放入搜索字段中找到了这个(仅搜索 curl_easy_perform 有太多的命中,因为它找到了所有测试和引用函数的文档代码,而不仅仅是定义)。

easy_perform() 完成所有实际工作,就在它之前定义。

关于c - libcurl 中 curl_easy_perform() 的源代码在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37765712/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com