Archived

This topic is now archived and is closed to further replies.

malpass

C# Network Programming

Recommended Posts

Anyone know any good books on network programming in C#. Also what would I learn from it, I mean would I like be able to create a MSN style program once i''d learnt it? You may be thinking why I want to learn network programming when I don''t even know what its really about, well, I learnt all the windows form functions and printing, custom controls etc... and some ADO/ASP, and I simply want something to learn to keep me from going bored. I''d also love to be able to create a chat proggy too.

Share this post


Link to post
Share on other sites
Check out http://www.hypothetic.org/docs/msn/resources/projects.php - a bit down on the page there''s a couple of c# libraries

Share this post


Link to post
Share on other sites
.NET makes network programming incredibly easy.

Make sure you focus on the following classes:

TcpClient
Socket
Dns
IPEndPoint
Encoding.ASCII (for converting strings to a byte buffer)
byte arrays (learn the Array class emthods too.)

For the best performance, use the asynchronous BeginXXX methods (like BeginReceive/BeginSend etc.) Internally, those functions use the Win32 I/O completion model.

Have fun.

Share this post


Link to post
Share on other sites