Example #1
0
 void ClientDisconnected(object sender, ClientEventArgs e)
 {
     try
     {
         if (this.RemoveClientManager(e.IP))
             this.UpdateConsole("Disconnected.", e.IP, e.Port);
     }
     catch (Exception ex)
     {
         SendStatus(ex.Message);
     }
 }
Example #2
0
 /// <summary>
 /// Occurs when a client disconnected from this server.
 /// </summary>
 /// <param name="e">Client information.</param>
 protected virtual void OnDisconnected(ClientEventArgs e)
 {
     if ( Disconnected != null )
         Disconnected(this , e);
 }