title: A .NET tutorial for thread networking with a WPF front-end
body: <p>I am trying to build a simple LAN chat in c# using WPF as a GUI. Since I want to enable server-less chatting, I'd like for each instance of the application to listen at an IP for multicasted messages and send multicasts to that IP as well. However, all the various tutorials for threaded networking I find on the net use the console, not WPF, which is set in its own thread. I have tried adapting those tutorials, but there is always something failing, such as the GUI thread suspending, or the messages not being processed/added to the GUI. Tutorials about consumer/producer threading systems would be great as well.</p>