多个HTTP连接(分段/群下载),下载Android版中相同的文件 [英] Multiple HTTP Connections (Segmented/Swarm Downloading) to download the same file in Android
问题描述
我目前正在为Android创造了下载管理器。为了优化下载我需要下载使用到服务器的多个连接的同一个文件。 (即在Windows中使用互联网下载管理器使用相同的技术。)
问题是我不知道如何来创建多个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!
推荐答案
产卵关闭它通过页眉内容范围
关键字请求文件的一部分线程数。看<一个href=\"http://stackoverflow.com/questions/4004675/reading-the-first-part-of-a-file-using-http\">Reading使用文件的第一部分的HTTP
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屋!