简体   繁体   English

C ++使用Pause / Resume控件下载文件

[英]C++ Downloading File with Pause/Resume controls

是否有一个简单的库,我可以使用暂停/恢复控件从互联网上异步下载文件。

You didn't mention OS you use. 你没有提到你使用的操作系统。 In case of Linux/Unix you can use libcurl. 在Linux / Unix的情况下,您可以使用libcurl。 This library is pretty simple in usage and powerful at the same time. 该库使用非常简单,同时功能强大。 It has curl_easy_pause method that does pausing and unpausing of current connection. 它有curl_easy_pause方法,可暂停和取消暂停当前连接。 Please see details at http://curl.haxx.se/libcurl/c/curl_easy_pause.html . 请参阅http://curl.haxx.se/libcurl/c/curl_easy_pause.html上的详细信息。 Here you can find examples of working with libcurl. 在这里,您可以找到使用libcurl的示例。

对于c ++,您可能会看到我的库示例: main.cpp

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

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