bittorent approach

Hello,

i would like to implement somekind of parallell download with java.

I am thinking about algorithms about how to split any media files in pieces(maybe of fixed length) and uniquely identify each piece. Then a way for a computer to retrieve each piece.

( i am dealing in Peer To Peer).

i would be happy if we could start a brainstorming in this thread , this would help me a lot for my school project.

thanks a lot

sebastien

[472 byte] By [sebvena] at [2007-10-3 10:05:50]
# 1
I never dealt with P2P programming but maybe you should look at Phlex ( http://www.phex.org/), an open source java client for the gnutella network. Maybe you can get some ideas out of the source.
JoachimRohdea at 2007-7-15 5:25:10 > top of Java-index,Other Topics,Algorithms...
# 2
If I hear Java and P2P, I think of JXTA: http://www.jxta.org/There's a wide variaty of tutorials on thet page as well.Good luck.
prometheuzza at 2007-7-15 5:25:10 > top of Java-index,Other Topics,Algorithms...
# 3

Hi

Thanks for your reply,

I am actually using the JXTA framework as the basis of my application. i was thinking to split my media in pieces of fixed size as bittorrent do, assign each of them some kind of hash values and retrieve them from the JXTA network by query flooding. This kind of thing could work ok for normal file download but since i am doing media streaming: play-while dowloading concept , It is a bit-clumsy, since not all data might be available at the needed time. i have to investigate this further, maybe by using larger chunck of data, this means more time to query the network for the next chunck of data.

regards

sebastien

sebvena at 2007-7-15 5:25:10 > top of Java-index,Other Topics,Algorithms...