Wrapped socket library ported to C#