Android Breakpoint continued to pass

Source: Internet
Author: User

The continuation of the breakpoint refers to the download or upload of the task (a file or a compressed package) is divided into several parts, each part of a thread for the upload or download, if you encounter a network failure, you can upload or download from the section to continue to upload the unfinished portion of the download, And there is no need to upload the download from scratch.  Users can save time and speed up using multi-threaded breakpoints to continue downloading, the download or upload task (a file or a compressed package) is artificially divided into several parts, each part of a thread for the upload or download, multiple threads concurrently can occupy the server side more resources, thereby speeding up the download speed. In the process of downloading (or uploading), if the network failure, low power, and so on causes the download interruption, this need to use to the breakpoint continuation function. The next time you start, you can start with the record location (the part that has already been downloaded) and continue downloading the parts that are not downloaded later, to avoid repeating portions of the download. The continuation of a breakpoint is essentially the ability to record where the last download was completed.the process of resuming a breakpoint① the continuation of the breakpoint needs to record the download progress of each thread during the download process; ② to read the database before each download starts, to query for incomplete records, to continue downloading, no to create a new record to insert the database, ③ to update the download progress in the database after each write to the file;    ④ download records are removed from the database after the download is complete. The continuation of a breakpoint is different from the normal download on the HTTP request, when the client browser passes a message to the Web server-where to start (HTTP request variables).  To implement HTTP breakpoint continuation, the Web server must support http/1.1 (as opposed to the older version of http/1.0). The HTTP request has a header with a range property that defines the download area, and the value it receives is an interval range, such as: range:bytes=0-10000. So we can according to certain rules, a large file into a number of small parts, and then sub-batch download, each small block download is completed, and then merged into the file, so that even if the download is interrupted, re-download, the file's byte length can also be used to determine the download starting point, and then restart the process of resuming the breakpoint, Until the final completion of the download process.FTP Implementation of breakpoint continuation  The FTP protocol can also support the continuation of a breakpoint to download data, the basic principle is to use the GET command when the data is appended to the file name to get the starting position.  There are three conditions for the FTP to carry out a breakpoint: The ① must be supported by the server, and the FTP server should be able to provide the function of resuming the breakpoint. Traditional FTP server does not support the continuation of the breakpoint, because it does not support rest instructions, currently includes IIS and most of the FTP setup software has this feature.  Using Serv-u to set up an FTP server can support the continuation of the breakpoint. ② Support breakpoint Continuation download tool software QQ Whirlwind, Thunder, audio and video conveyor Most of the download software support the continuation of the breakpoint; Internet Explorer 5.0 the previous version of the default own download method does not support the continuation of the breakpoint.  On the phone, the UC browser supports the continuation of the breakpoint, the ability to automatically store the downloaded part, and then reopen it to continue downloading on the basis of the downloaded section.  The files on the ③FTP server are the same as the file names that are downloaded to the hard disk. When you use IE to download files, you encounter a network outage, you do not need to restart the machine, you can also implement a breakpoint to continue transmission. The prerequisite is to use the same path and file name as the first download when resuming the download, starting the breakpoint and prompting to save the file again.characteristics of the continuation of the breakpointThe continuation of a breakpoint supports the transfer of data from the point where the file was last interrupted, rather than from the beginning of the file.  The breakpoint continues to download the software has the following characteristic: 1, the breakpoint continues to transmit the function, can save the time and can save the money.  2, timed download function, you can download the software to develop a task list, so that the download software in the specified time automatically dial the Internet and download software, after downloading the modem automatically suspended, disconnect from the Internet, and even automatically shut down the computer.  3, multiple files simultaneously download.  4, support drag-and-drop operation, you can download the URL of the file hyperlink with the mouse to download the software window, you can activate the download software, and start the download of the file.  5, automatically capture the Clipboard URL and activate the download software, you can capture the Clipboard URL, or even click the download file hyperlink in the browser, you can activate the program implementation file download.  6, fatal error occurs when the shutdown mechanism.  7, prevention of virus violation of the security mechanism, the file download is complete, you can automatically send it to the virus detection software for virus scanning. Breakpoint Continuation download software includes thunder, Netants, FlashGet, Net Vampire, Download Manager, GetRight, go! Zilla, Windownload and so on.

Android Breakpoint Continuation

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.