【问题标题】:Where is the sourcecode for curl_easy_perform() in libcurl?libcurl 中 curl_easy_perform() 的源代码在哪里?
【发布时间】:2016-06-11 15:57:35
【问题描述】:

我在 libcurl 源代码树中找不到这个重要函数的源代码。我也没有在 curl.h 中找到这个函数的定义。搜索 linux 内核 github 源代码和几次 google 搜索都不会产生任何结果。

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

【问题讨论】:

  • 第三方库与 Linux 内核有什么关系?

标签: c curl libcurl


【解决方案1】:

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() 完成所有实际工作,在它之前定义。

【讨论】:

  • 太棒了,巴尔玛!非常感谢。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-10-07
  • 1970-01-01
  • 1970-01-01
  • 2011-04-20
  • 2023-03-21
相关资源
最近更新 更多