Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# WCF peer-to-peer
Hi there,
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?
Posted 22-Mar-13 12:40pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I got the Solution,I found the solution. First i should have a complete knowledge about WCF and i should be able to call on of that WCF service from another application. Then i should have a good experience and awareness about P2P and its details such as PNRP,PEER,Cloud and they way that peers connect to other peers. This application is wholly different with other Chat application which have been written as P2P files and you can find a lot of samples in CodeProject as well.Therefor when you can connect to application and resolve other peers and their HostName, you will be able to call the method who give you destination machine's file a binary data.
Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 520
1 Maciej Los 205
2 Suvendu Shekhar Giri 159
3 Peter Leow 140
4 Kornfeld Eliyahu Peter 133
0 Sergey Alexandrovich Kryukov 9,623
1 OriginalGriff 8,895
2 Peter Leow 5,044
3 Kornfeld Eliyahu Peter 3,333
4 Maciej Los 2,561

Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 16 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100