繁体   English   中英

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

[英]Where is the sourcecode for curl_easy_perform() in libcurl?

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

curl_easy_perform()必须在某个地方定义或实现,或者至少通过某些macro(?)来定义,但是尽管给出了调用此函数的大量示例,但我没有发现其实现。 有任何想法吗?

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命中率curl_easy_perform因为它找到了引用该函数的所有测试和文档代码,而不仅仅是定义)。

easy_perform()做的是所有实际工作,它是在它之前定义的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM