a simple socket wrapper for C#.