We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

How is Peer-to-Peer programming different from a client and server protocol?

Medium Priority
783 Views
Last Modified: 2012-05-11
Explain in layman's term the concept of peer-to-peer protocol , How is it different from ordinary client and server protocol?

Where can I find a simple peer to peer program example that illustrate the peer concept?
I have google and searched for weeks but I still do not understand the concept.

I would also like a peer to peer file sharing example if thats available?
Comment
Watch Question

Peer to peer is where both sides act as clients and servers, whereas client/server stay client/server.  A simple one may be hard to find, but there are examples.  This one even give a sample for both ways.

http://create.msdn.com/en-US/education/catalog/sample/network_p2p

And here's some more info:
http://msdn.microsoft.com/en-us/library/cc297274.aspx
http://en.wikipedia.org/wiki/Peer-to-peer
http://www.computerworld.com/s/article/69883/Peer_to_Peer_Network

As far as file-sharing examples, a simple one may be harder to find but there are open source ones:

http://en.wikipedia.org/wiki/Category:Free_file_sharing_software

Author

Commented:
Will review sites now

Author

Commented:
Are peer to peer protocols implemented in C on Linux Networks or mostly done through using Java on Windows OS? I am asking because I have not found examples using C and that can work with simple command prompt windows.

Commented:
> How is it different from ordinary client and server protocol?
It is no different from client/server programming.
It also will use the same socket API's to connect.
But, it makes use of the concept of distributed networking.
Here is an explanation from HowStuffWorks: http://computer.howstuffworks.com/bittorrent1.htm

Since it makes use of distributed networking, the architecture itself is complex.
So, you cannot find a simple example code which can explain this.
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.