New code to accompany chapter eight of Microsoft Windows Communication Foundation-Hands On!, compatible with the June 2006 CTP/RC1 release is here: http://www.electronicfiles.net/files/3741/08.zip. I prefer this sample to the original one because it covers a more common scenario. The scenario is that of a server application that communicates via a proprietary protocol over TCP. That protocol defines how messages are framed within data transmitted via the TCP socket, and how messages may be formatted. Client applications connect to the server and the client and server send messages back and forth to one another, in response to events occuring one the client's side, or on the server's.
Run the sample without debugging to avoid a couple of phantom exceptions.
The June 2006 CTP/RC1 release itself is here: http://www.microsoft.com/downloads/details.aspx?FamilyID=8d09697e-4868-4d8d-a4cf-9b82a2ae542d&DisplayLang=en.