Пример #1
0
 void ClientDisconnected(object sender, ClientEventArgs e)
 {
     if (RemoveClientManager(e.IP))
     {
         UpdateConsole("Disconnected.", e.IP, e.Port);
     }
 }
Пример #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);
 }