Esempio n. 1
0
 private void RaiseDataReceived(ReceivedDataArgs args)
 {
     if (DataReceivedEvent != null)
     {
         DataReceivedEvent(this, args);
     }
 }
Esempio n. 2
0
 private void Server_DataReceivedEvent(object sender, ReceivedDataArgs args)
 {
     Console.WriteLine("Received message from [{0}:{1}]:\r\n{2}",
                       args.IpAddress.ToString(), args.Port.ToString(),
                       Encoding.ASCII.GetString(args.ReceivedBytes));
 }