Mirage Source
[C#] TCP Server - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Programming (https://mirage-engine.uk/forums/forumdisplay.php?fid=24)
+----- Forum: .NET (https://mirage-engine.uk/forums/forumdisplay.php?fid=35)
+----- Thread: [C#] TCP Server (/showthread.php?tid=2981)



[C#] TCP Server - 4ngel - 29-07-2009

I'm relatively new to C#, and even more new to the construct of networking. I have put together a simplistic server example within C# (which sort of evades the TCPClient and TCPServer classes for more flexibility). I thought that it might come to some use here if someone wanted to start a C# networking project. This example is obviously not limited to a 2D RPG, hence why it's labeled a generic example. I might post my Client example once I 'clean it up' slightly. I should note that this server may not be efficient, or coded to the best of standards. So hopefully someone with more programming knowledge can help it along.

You can use the code however you wish.

EDIT: Link removed, fixing things.


Re: [C#] TCP Server - Beres - 30-07-2009

Cool Big Grin I've been learning on how to do some networking with C# myself. Good work.


Re: [C#] TCP Server - Dragoons Master - 30-07-2009

I WILL take a look when I have more time. Nice job ^^


Re: [C#] TCP Server - 4ngel - 31-07-2009

Thanks for your comments; much appreciated.

I can't help but feel that my code is sloppy. So if anyone looks over the class, please give me some feedback.