多个HTTP连接(分段/群集下载)在Android中下载相同的文件 [英] Multiple HTTP Connections (Segmented/Swarm Downloading) to download the same file in Android
问题描述
我目前正在为Android创建一个下载管理器。为了优化下载,我需要使用多个连接下载相同的文件到服务器。 (即,在Windows中使用的Internet下载管理器中使用的技术相同)
事情是我不知道如何创建多个HTTP连接并下载相同的文件。我希望你能帮助我..谢谢提前!
I'm currently working on creating a Download Manager for Android. In order to optimize the download I need to download the same file using multiple connections to the server. (ie. the same technique used in Internet Download Manager used in Windows.) The thing is I don't know how to create several HTTP connections and download the same file. I hope you can help me.. Thanks in advance!
推荐答案
通过头文件 c> Content-Range
Spawn off a few threads which request part of the file via the Header Content-Range
keyword. see Reading the first part of a file using HTTP
这篇关于多个HTTP连接(分段/群集下载)在Android中下载相同的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!