Friday, March 19, 2010

.NET Asychronous Sockets Server

I've been starting work on designing a scalable TCP/IP sockets server in .NET.  Not having done anything like this before, I did some digging around on the web, googling for '.net asynchronous sockets heap fragmentation'.  Here, here, here, here, here, here and here are some posts that were highly worth reading.

Not suprisingly, .NET wraps Win API calls, for instance AcceptEx.  With that in mind, this article provides some good background.

Also, in the course of absorbing the above, references were made to Jeffery Richter's Power Threading Library, as a great way to learn about multithreading, locks and so on.  Said library is available here.

Last, I'm not sure if this one is still relevant, so I need to read again.

Edit:  As .NET uses IOCP under the hood, this introductory article and this more technical one may be useful reads.  The second link in turn references other articles:

No comments: