Example #1
0
 /// <summary>
 /// Disconnect All Clients whose having the same IP
 /// </summary>
 /// <param name="Client"></param>
 public void DisconnectAll(Operation Client)
 {
     foreach (Operation OnlineClient in Clients.ToArray())
     {
         if (OnlineClient.EndPoint.Address.Equals(Client.EndPoint.Address))
         {
             RemoveHandlers(OnlineClient);
             OnlineClient.ShutdownOperation();
         }
     }
 }