c# with socket io code example
Example 1: c# socket send
byte[] msg = Encoding.UTF8.GetBytes("This is a test");
// Blocks until send returns.
int byteCount = server.Send(msg, 0, msg.Length, SocketFlags.None);
Console.WriteLine("Sent {0} bytes.", byteCount);
Example 2: c# socket receive
byte[] bytes = new byte[256];
server.Receive(bytes, 0, server.Available, SocketFlags.None);