예제 #1
0
 /// <summary>
 /// Raise the Connected event.
 /// </summary>
 /// <param name="e">An <see cref="TcpConnectionEventArgs"/> object that contains the event data.</param>
 private void OnConnected(TcpConnectionEventArgs e)
 {
     if (Connected != null)
     {
         Connected(this, e);
     }
 }
예제 #2
0
 /// <summary>
 /// Raise the Disconnected event.
 /// </summary>
 /// <param name="e">An <see cref="TcpConnectionEventArgs"/> object that contains the event data.</param>
 private void OnDisconnected(TcpConnectionEventArgs e)
 {
     if (Disconnected != null)
     {
         Disconnected(this, e);
     }
 }
예제 #3
0
 /// <summary>
 /// Raise the Disconnected event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e">An <see cref="TcpConnectionEventArgs"/> object that contains the event data.</param>
 private void OnDisconnected(object sender, TcpConnectionEventArgs e)
 {
     if (Disconnected != null)
     {
         CloseConnection(e.Connection);
         Disconnected(this, e);
     }
 }
 /// <summary>
 /// Raise the Disconnected event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e">An <see cref="TcpConnectionEventArgs"/> object that contains the event data.</param>
 private void OnDisconnected(object sender, TcpConnectionEventArgs e)
 {
     if (Disconnected != null)
     {
         Disconnected(this, e);
     }
 }
 /// <summary>
 /// Raise the Connected event.
 /// </summary>
 /// <param name="e">An <see cref="TcpConnectionEventArgs"/> object that contains the event data.</param>
 private void OnConnected(TcpConnectionEventArgs e)
 {
     if (Connected != null)
     {
         Connected(this, e);
     }
 }