I am trying to implement a Peer To Peer software for file sharing..
Now,I am really confused.The algorithm has these steps :
1: One of the peers should send a file address of its own directory to another peer
2: The other client or Peer receives the file Address and download it.
So,I do not know,how should i implement it.
My question has 2 aspects:
1: How should i get a particular file's address of a specified Peer? (This is more important)
2: How does another peer can download that file?