Kevin RansomDeveloping the Peer ChannelIs there anybody out there (Online Offline and the Peer Channel)- October 19, 2005 Updated to reflect changes in the February CTP One of the most frequently asked questions is this: How can I tell if a node is the only member of the mesh We addedevents and a property that can be queried to get this information The definition of online status is straightforward: A node that has no immediate neighbors is Offline. A node with at least one neighbor is Online. PeerNode and Online Status To set the online and offline events to handlers specified in your own code.http://blogs.msdn.com/kevin_ransom/archive/2005/10/19/Is-there-anybody-out-there_3F00_--_2... Handling Messages directly- October 13, 2005 Updated to reflect changes in the February CTP My previous samples demonstrated using ServiceModel to dispatch messages to a strongly typed message handlers. There are times when instead of having a seperate implementation for every message you will want to have a centralised message handler (often this handler is called ProcessMessage). An early version of the Peer channel system code had a message handler called ProcessMessage where the Peer channel messages were...http://blogs.msdn.com/kevin_ransom/archive/2005/10/13/Handling-Messages-directly.aspx Multiple channels- October 3, 2005 One of my colleagues has pointed out a bug in this example I have edited this so that it now shows the correct code. The bug is that for Peer channel the configuration for each endpoint needs a distinct address to see what has changed please view the section labeled The Configuration the update items are italicized. Updated to reflect changes in the February CTP In my previous post (can be found: here) I showed how to write a very simple Peer channel app with a single Message.http://blogs.msdn.com/kevin_ransom/archive/2005/10/03/Multiple-channels.aspx |