server send c# socket code example
Example: 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);