Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

File breakpoint continuous transmission method based on iOS network

A technology for resuming file transfer from a breakpoint, which is applied to the processing of network requests in the iOS system to achieve the effects of saving memory costs, improving operating efficiency, and being easy to use.

Inactive Publication Date: 2019-04-05
SHAANXI TIANCHENG XINKAI SOFTWARE CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The purpose of the present invention is to solve the problem in the prior art that the iOS system does not have a method for automatic detection and use of network breakpoint resumes based on the built-in network request framework, and to provide a network request breakpoint resume in the iOS system Methods

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File breakpoint continuous transmission method based on iOS network

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] Such as figure 1 The shown flow chart of the method for resuming file transfer based on the iOS network includes the following steps:

[0028] S1, the mobile phone sends a network request to the server, the mobile phone gets the URL request, and then creates a new thread according to the URL request, and records the download progress of each thread.

[0029] S2, the mobile phone requests the specified address to download the file according to the URL request obtained in S1. If the network is abnormal, it will prompt an error message. If the network is normal, it will access the specified address and prepare to download the file; the purpose is to determine whether the mobile network is connected. to start the file download.

[0030] S3, the mobile phone starts to download the file. If the download is abnormal, record the current download location, generate a field RANGE, and save the current download location in the memory of the mobile phone before sending it to the s...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a file breakpoint continuous transmission method based on an iOS network. In the invention, a network request which is carried by the iOS system is adopted and the method has the advantages of convenient use, stability, high compatibility, secondary development and the like. Compared with a traditional breakpoint continuous transmission method, the steps of file compressionand cache deletion are added in the method of the invention so that the compression of a downloaded file size is realized, cache files which are not used for a long time are automatically removed, and unnecessary memory spending is saved. Synchronous operation with a server can be performed. The advantage and the underlying architecture of an iOS network request are inherited, and more practicalmethods can be provided according to unique needs. The number of functions is increased, and the performance and the speed of file downloading are improved and increased. Development efficiency or theoperating efficiency of an application program is greatly improved.

Description

technical field [0001] The invention relates to a processing technology of a network request in an iOS system, in particular to a method for resuming transmission based on a network request of the iOS system. Background technique [0002] The understanding of breakpoint resume can be divided into two parts: one part is breakpoint, and the other is resume. The origin of the breakpoint is that during the download process, a download file is divided into multiple parts, and multiple parts are downloaded at the same time. When the task is suspended at a certain point in time, the position where the download is suspended is the breakpoint. . Resume transfer means that when an unfinished download task starts again, it will continue to transfer from the last breakpoint. [0003] When using multi-threaded breakpoint resume download, the download or upload task (a file or a compressed package) is artificially divided into several parts, and each part uses a thread for uploading or ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/02H04L67/06
Inventor 王凯峰
Owner SHAANXI TIANCHENG XINKAI SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products