System.ServiceModel Namespa ...


.NET Framework Class Library
NetPeerTcpBinding Class

Provides a secure binding for peer-to-peer network applications.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
Syntax

Visual Basic (Declaration)
Public Class NetPeerTcpBinding _
    Inherits Binding _
    Implements IBindingRuntimePreferences
Visual Basic (Usage)
Dim instance As NetPeerTcpBinding
C#
public class NetPeerTcpBinding : Binding, 
    IBindingRuntimePreferences
Visual C++
public ref class NetPeerTcpBinding : public Binding, 
    IBindingRuntimePreferences
JScript
public class NetPeerTcpBinding extends Binding implements IBindingRuntimePreferences
Remarks

The NetPeerTcpBinding binding provides support for the creation of peer networking applications that use a TCP-level peer-to-peer mesh infrastructure.

Each PeerNode instance can host multiple peer channels defined with this binding type. Channel factories produced using a configured instance of this type can be used to generate peer channels. A peer channel factory can produce peer channels that are input-only (implements IInputChannel), output-only (implements IOutputChannel), and duplex (implements IDuplexChannel).

This is one of the standard bindings provided by the Windows Communication Framework (WCF). It can be used in imperative code or specified in the corresponding XML configuration file for the application. The recommended procedure is to define the binding using configuration values and not to use a code-based approach, except in certain advanced scenarios where configuration values must be set as a service is initialized.

Inheritance Hierarchy

System..::.Object
  System.ServiceModel.Channels..::.Binding
    System.ServiceModel..::.NetPeerTcpBinding
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0
See Also

Reference

Tags :


Community Content

G1
The straight goods (correct this if its wrong)

Each machine will maintain and update a local list of network names (in some folder somewhere) in order to resolve network addresse requests. These request may come from the local machine's applications/users or from another machine (ie. a peer). To resolve these requests, this networking "binding" will check its itself then its list of network names, then "query" each machine to ask if they know the name. One the name is resolve the local list is updated (if the name wasn't found there). Presumably, changes are similarly updated when a connection attempt fails.

Authentication of peer is not clearly specified nor is the type/format of network names and their address (I guess IP/URL).

Presumably the domain (or rather the namespace or collection of knowable names) is the list of all potential connections through this resolution system.

Tags :

TorstenRendelmann
Do not guess, read docs
Read about the required PNRP service to use that binding here: http://search.msdn.microsoft.com/Default.aspx?query=PNRP+Service&brand=msdn&locale=en-us&refinement=

First thing one have to check before enable/use that binding, is the value of the static property IsPnrpAvailable (http://msdn.microsoft.com/en-us/library/system.servicemodel.netpeertcpbinding.ispnrpavailable.aspx)

A good sample of this class is provided by the MSDN magazine: http://msdn.microsoft.com/en-us/magazine/cc700336.aspx
Tags :

Page view tracker