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?
Asked
Active
Viewed 360 times
1
-
What protocol do you intend to use? HTTP or something else? – Vineet Reynolds Sep 10 '11 at 13:57
-
Err, did you create a new account to ask [the same question](http://stackoverflow.com/questions/7370425/how-to-download-same-file-distributed-in-different-computers-in-java)? – Vineet Reynolds Sep 10 '11 at 14:13
-
No...May be any one of my team mate cud have posted the question...let me check – Achyut Paudel Sep 10 '11 at 14:16
-
can you suggest me how can it be done using jxta??? – Achyut Paudel Sep 10 '11 at 14:20
-
So what is the question here exactly? If you are asking for a JXTA tutorial? Or to for someone to implement for you? – Miserable Variable Sep 10 '11 at 14:58
-
i am asking the tutorial for splitting the file and sending using java over jxta.. – Achyut Paudel Sep 10 '11 at 15:17
2 Answers
2
Are you trying to implement a new Bittorrent client?

Guido
- 46,642
- 28
- 120
- 174
-
Sounds like a vanilla download "accelerator" such as [JDownloader](http://jdownloader.org/). – Steve-o Sep 10 '11 at 13:50
-
@guido garcla: Actually i am creating an application like a bit torrent but not exactly. I am using JXTA for peer to peer communication and had made a simple file transfer using it. I wanted to improve that to make the transfer of same files which are displayed and are occuring in different peers simultaneously. I think this will give me a lot more speed...I dont know how that can be implemented?? – Achyut Paudel Sep 10 '11 at 13:51
-
@steve: I think download accelerators just communicate with one peer/server and downloads the whole file from the server in parts and later joins it. my problem is that how can i download those different parts from different peers simultaneously and join it later on.. – Achyut Paudel Sep 10 '11 at 14:05
0
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.

Jérôme Verstrynge
- 57,710
- 92
- 283
- 453