Jump to content
  • Advertisement

Archived

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

malpass

C# Network Programming

This topic is 5460 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!