Other Peer channel and WCF resources

 Windows Communication Foundation on the net – Get latest updates/news about the runtime and SDK install locations Kevin Ransom’s blog – Peer channel development lead’s thoughts and rantings Ravi Rao’s blog – Peer channel Program Manager’s thoughts and rantings  


The PeerHopCount Attribute: Controlling Message Distribution

This post explains the how, what, and why of the PeerHopCount attribute provided by Peer Channel in the .NET Framework 3.0 Why would I need PeerHopCount? Peer Channel’s basic flooding model involves distributing each message sent by any member of a mesh to all other members of that mesh.  This is ideal in situations where…


Tip: Peer Channel diagnostics using WCF Tracing/Message Logging

Scenario: You want to enable WCF tracing for troubleshooting purposes Tip: You need to use the App.config file to enable WCF Tracing and Message Logging. The following (either 1 or 2 depending on your scenario) will end up generating a .svclog file named MyAppTraceFile.svclog. This file is viewable using the ServiceTraceViewer.exe tool (shipped with the…

1

Tip: Peer Channel and custom Message contracts

Scenario: Say, we have defined a custom Message contract to use in our Application like so:      public enum SendMessageType     {         Send,         Ack,         Resend,     }       [MessageContract(IsWrapped=false)]     public class TestMessage     {         [MessageHeader]         public SendMessageType Type;           [MessageHeader]         public int MessageId;     }    …


Tip: Sending large Peer Channel messages and NetPeerTcpBinding.ReaderQuotas

Scenario: Trying to send large WCF messages over the Peer Channel Symptom: Peers do not receive messages even though NetPeerTcpBinding.MaxReceivedMessageSize is appropriately configured. Tip: Set the NetPeerTcpBinding.ReaderQuota field values to integer.MaxValue like so: <netPeerTcpBinding> <binding name=”standard_LargeMsgConfig0″  maxReceivedMessageSize=”200000″>                     <readerQuotas maxDepth=”2147483647″                         maxStringContentLength=”2147483647″                         maxArrayLength=”2147483647″                         maxBytesPerRead=”2147483647″                         maxNameTableCharCount=”2147483647″ />                   <security mode=”None” />      </binding> </netPeerTcpBinding>…

2