tags:

views:

77

answers:

5

Hi,

I will develope a programm that:

  • connect 2 PCs
  • 1 will be server, 1 will be client
  • Language C#.net 2.0
  • like a chat

Con somepne give me a start-howto or something I can read, how I can connect 2 PCs aand send text messages to each other?

I will not use .Net 3.5, of severeal reasons.

+2  A: 

Read up - lowest level - how SOCKETS and TCP works.

Next one would be getting into WCF which is a higher abstraction level. I would use WCF here.

TomTom
You'll get a lot of frowns from the whippersnappers around here who don't start at the bottom and work up anymore, but I agree with you. :-)
Garry
+1  A: 

If you have a limitation of .net 2.0 you can have a look at the TCP Client . If not, you could bump up to .NET 3.5 and use WCF.

PieterG
A: 

One option is to create a WCF service on the server. It will let you keep out of some of the details of lower level network programming with sockets. See for example this WCF .Tutorial

If you want to learn "real" network programming you should look into using TCP or UDP sockets.

Anders Abel
+4  A: 

This article provides chat development tutorial using c#.

Jojo Sardez
A: 

I think XMPP/Jabber will do exactly what you want. Take a look at jabber.net and the examples. Jabber requires a federated server for instance gmail/google and many others or you can host your own. I had good luck with the open source and free OpenFire.

Another possibility for direction connection is Skype via its skype4com.dll.

kenny