P2P File Sharing app. Help would be very appreciated.
Hello,
I'm writing a p2p application as part of something for my uni, and have encountered a problem I can't seem to find a solution for.
A peer on the application sends out a query message to all active peers which returns who has the file specified. I then need the app to split the file into a specified number of bytes, and download a piece from each peer over TCP.
The peer who initiated the query would then reassemble the file.
The problem is I can't seem to find anything in the library which would allow me to split the file, or reassemble it. I've found some source as to transferring a file over TCP (using output stream) but if someone can also offer a better suggestion i would really welcome it.
Thanks,
M

