Пример #1
0
 /// <summary>
 /// Raise the DataReceived event.
 /// </summary>
 /// <param name="e">An EventArgs object that contains the event data.</param>
 private void OnDataReceived(TcpDataReceivedEventArgs e)
 {
     if (DataReceived != null)
     {
         DataReceived(this, e);
     }
 }
Пример #2
0
 /// <summary>
 /// Raise the DataReceived event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e">An <see cref="TcpDataReceivedEventArgs"/> object that contains the event data.</param>
 private void OnDataReceived(object sender, TcpDataReceivedEventArgs e)
 {
     if (DataReceived != null)
     {
         DataReceived(this, e);
     }
 }
 /// <summary>
 /// Raise the DataReceived event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e">An <see cref="TcpDataReceivedEventArgs"/> object that contains the event data.</param>
 private void OnDataReceived(object sender, TcpDataReceivedEventArgs e)
 {
     if (DataReceived != null)
     {
         DataReceived(this, e);
     }
 }
Пример #4
0
 /// <summary>
 /// Raise the DataReceived event.
 /// </summary>
 /// <param name="e">An EventArgs object that contains the event data.</param>
 private void OnDataReceived(TcpDataReceivedEventArgs e)
 {
     if (DataReceived != null)
     {
         DataReceived(this, e);
     }
 }
Пример #5
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 mTcpServer_DataReceived(object sender, TcpDataReceivedEventArgs e)
 {
     DataReceived((IPEndPoint)e.Connection.Client.RemoteEndPoint, e.Data);
 }