title: C# wrapper for Winsock 2 DLL?
body: <p>Now that Silverlight 5 (RC) supports <a href="http://10rem.net/blog/2011/09/04/the-big-list-of-whats-new-or-improved-in-silverlight-5" rel="nofollow">P/Invoke</a>, I am thinking of implementing a Socket class with server functionality, i.e. a class that implements the Bind, Listen, Accept methods, etc. With P/Invoke, I would be able to access the socket methods in ws2_32.dll from my Silverlight class library.</p>
  
  <p>If possible, I would like to get a head start. It's a long-shot, but: has anyone implemented a C# wrapper to the Winsock 2 DLL, and in that case, is this effort publicly available?</p>
  
  <p>The <a href="https://github.com/mono/mono" rel="nofollow">Mono</a> project of course provides its own <a href="https://github.com/mono/mono/blob/master/mcs/class/System/System.Net.Sockets/Socket.cs" rel="nofollow">Socket</a> implementation in C#, but this code comes with a little bit of overhead, to say the least. I am looking for a more light-weight solution, if there is any.</p>