Exemplo n.º 1
0
 void ClientDisconnected(object sender, ClientEventArgs e)
 {
     if (RemoveClientManager(e.IP))
     {
         UpdateConsole("Disconnected.", e.IP, e.Port);
     }
 }
Exemplo n.º 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);
 }