javanetwork-programmingp2pjxta

Downloading a file in parts from different computers simultaneously


I want to create a application that can communicate to the different computers and can download file from there. If there exist the same file in different computers then the file will be downloaded in parts simultaneously from these computers, which will make my download speed a lot faster. How can I implement that using JXTA?


Solution

  • The JXTA framework will help you exchange files, but the splitting in parts will have to be done by your application. I suggest you take a look at bidirectional pipes. Each messages could be tagged with a part number. Another solution could be using queries and send bits in answers.