Jump to content
  • Advertisement
Sign in to follow this  
Kahsm

Tiny C# Listen Server

This topic is 4768 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

Hello Everyone, Tiny C# Listen Server I made this very little demo application as an example of how to quickly get an Asynchronous listen server running in C#. It is supposed to be as simple as possible but demonstrate the gist of what the listen portion of a TCP server would do using this Asynchronous method (BeginAccept). If anyone who has some free time could take a look, make some suggestions, or point out any flaws, it would be greatly appreciated. Thanks,

Share this post


Link to post
Share on other sites
Advertisement
Hey that's neat.

Don't have any criticisms other than your code is very well commented and easy to understand.

If you have the time, I would love to see it evolve into a little networked game.

Share this post


Link to post
Share on other sites
Thanks that is really helpful and now I am considering writing my server in c#.
However the example needs to be extended to show how to receive data from a client and also how to determine if a client connection is closed so that it may be removed from the arraylist, since I have no idea ;)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
for some really good ideas in c# runuo is a server emulator that uses extensive networking .. might give some great hints and has source available
just google it...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!