Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build a messaging system in .NET?

I'd like to write a program where you can have 2 clients that talk to each other in realtime. I've been looking into WCF services and Duplex messaging, data contracts etc but now I'm confused.

Basically I see it as:

[Client] --- msg --> [Server] --- msg --> [Client] and vica versa.

The server will just act as the messenger.

Could you please point me in the right direction? I'd like to use WPF for the client apps.

like image 565
williamparry Avatar asked Jan 16 '10 11:01

williamparry


2 Answers

Check out the WCF peer-to-peer programming paradigm. It will be extended in WCF 4 (with .NET 4 - due out April 12, 2010) by allowing dynamic discovery (and article here) of other clients on your network.

like image 198
marc_s Avatar answered Oct 09 '22 05:10

marc_s


This should help get you going: WCF / WPF Chat Application

like image 45
Eric Dahlvang Avatar answered Oct 09 '22 03:10

Eric Dahlvang