简体   繁体   中英

C++ Downloading File with Pause/Resume controls

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

You didn't mention OS you use. In case of Linux/Unix you can use 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. Please see details at http://curl.haxx.se/libcurl/c/curl_easy_pause.html . Here you can find examples of working with libcurl.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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