Cross-platform multithreading breakpoint continuation Download library based on Ibcurl

Source: Internet
Author: User

Previously wrote a multi-threaded breakpoint to continue the download library, but that is based on a Linux download program. Windows run OK, Android under a variety of problems, debugging up also trouble. After the development of the game, on the one hand on the download requirements are not high, on the other hand also limited energy, so did not continue to study.

While there is time now, I would like to achieve a self-satisfied download library to meet the following requirements:

1, multi-threaded download, according to the file size and the number of downloaded files to dispatch. Generally a file is a file in order to download, if the file is more than the case can be multiple files simultaneously download, this can be set.

2, the breakpoint continues to pass. The download progress is recorded in a configuration file that requires no damage to the file or any other errors that cannot be downloaded.

3, at least in Windows, Android, IOS, WP8 under stable operation.

4, the interface to be simple, design to be simple.

5, can set speed limit, limit CPU consumption, etc.

6, through the simple operation can achieve background download (see the actual situation, this is a low-priority target)


Why based on Libcurl? This is mainly based on the stability of cross-platform. Now it seems that Libcurl's cross-platform performance is the best, and I don't have the confidence to encapsulate a more stable code. Based on Libcurl to complete the download, the core issue is switched to how to maintain and dispatch curl.

(not to be continued)

Cross-platform multithreading breakpoint continuation Download library based on Ibcurl

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.