Introduction:
In this article,i am going to explain about how to use p2p base classes and how to create a peer to peer
applications using asp.net.
Main:
What is p2p?
Peer-to-peer networking is an alternative approach to network communication. In order to understand how P2P differs from the “standard” approach to network communication it is necessary to take a step backward and look at client-server communications. Client-server communications are ubiquitous in networked applications today.
Groups of peers that are connected to each other are known by the interchangeable terms meshes, clouds, or graphs. A given group can be said to be well-connected if:
There is a connection path between every pair of peers, so that every peer can connect to any other peer as required.
There are a relatively small number of connections to traverse between any pair of peers.
Removing a peer will not prevent other peers from connecting to each other.
Just Peer Claims “Clients”,See the below diagram,
We can effectively use a p2p in below classes of applications,
Content distribution applications, including the file-sharing applications discussed earlier.
Collaboration applications, such as desktop sharing and shared whiteboard applications.
Multi-user communication applications that allow users to communicate and exchange data directly rather than through a server.
Distributed processing applications, as an alternative to supercomputing applications that process enormous amounts of data.
Web 2.0 applications that combine some or all of the above in dynamic next-generation Web applications.
In asp.net 3.5 the below namespaces are helps us to create a peer to peer programs,
System.Net.PeerToPeer
System.Net.PeerToPeer.Collaboration
The Microsoft Windows Peer-to-Peer Networking platform is Microsoft’s implementation of P2P technology. It is part of Windows XP SP2 and Windows Vista, and is also available as an add-on for Windows XP SP1. It includes two technologies that you can use when creating .NET P2P applications:
The Peer Name Resolution Protocol (PNRP), which is used to publish and resolve peer addresses
The People Near Me server, which is used to locate local peers (currently Vista only)
System.Net.PeerToPeer
The classes in the System.Net.PeerToPeer namespace encapsulate the API for PNRP and enable you to interact with the PNRP service. You will use these classes for two main tasks:
Registering peer names,
Resolving peer names,
In the following sections, all the types referred to come from the System.Net.PeerToPeer namespace unless otherwise specified.
VISIT MAIN ARTICLE,