Inheritance: System.EventArgs
Exemplo n.º 1
0
 static void onReceive(object sender, ReceiveEventArgs e)
 {
     if (e.bytes.Length > 1) {
         var message = new byte[e.bytes.Length - 1];
         Array.Copy(e.bytes, message, message.Length);
         Console.WriteLine(Encoding.UTF8.GetString(message));
     }
 }