![](/img/trans.png)
[英]Why is libcurl segfaulting on this call to curl_easy_perform()?
[英]Where is the sourcecode for curl_easy_perform() in libcurl?
我在libcurl源代碼樹中找不到此重要功能的源代碼。 在curl.h中也找不到此函數的定義。 搜索linux內核github源碼或幾個google搜索都不會產生任何結果。
curl_easy_perform()必須在某個地方定義或實現,或者至少通過某些macro(?)來定義,但是盡管給出了調用此函數的大量示例,但我沒有發現其實現。 有任何想法嗎?
/*
* 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.