CNT Project, Spring 2014
For remote peer management, please see: README-RemotePeers.md
-
Run the class FileSharer as a Java application
-
It automatically sets up N peers using the modified StartRemotePeers class, which reads from PeerInfo.cfg in the present format:
peerID peerHost peerPort -
The original peer sends a Handshake message to each newly created peer.
-
Then, the sample file is split into pieces, and the pieces are sent to each peer using the protocol message format.
-
When all peers have received all the pieces, original peer shuts down.
-
Each peer shuts down after reassembling the file.