Esempio n. 1
0
 /// <summary>
 /// Raise the DataReceived event.
 /// </summary>
 /// <param name="e">An EventArgs object that contains the event data.</param>
 private void OnDataReceived(UdpDataReceivedEventArgs e)
 {
     if (DataReceived != null)
     {
         DataReceived(this, e);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Process data received events.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">An EventArgs object that contains the event data.</param>
 private void mUdpServer_DataReceived(object sender, UdpDataReceivedEventArgs e)
 {
     DataReceived(e.SourceEndPoint, e.Data);
 }