Exemple #1
0
 private void CreateNewClientManager(Socket socket)
 {
     var newClientManager = new ClientManager(socket);
     newClientManager.CommandReceived += CommandReceived;
     newClientManager.Disconnected += ClientDisconnected;
     CheckForAbnormalDc(newClientManager);
     _clients.Add(newClientManager);
     UpdateConsole("Connected.", newClientManager.IP, newClientManager.Port);
 }
Exemple #2
0
 private void CheckForAbnormalDc(ClientManager mngr)
 {
     if (RemoveClientManager(mngr.IP))
     {
         UpdateConsole("Disconnected.", mngr.IP, mngr.Port);
     }
 }
Exemple #3
0
 private void CreateNewClientManager(Socket socket)
 {
     ClientManager newClientManager = new ClientManager(socket);
     newClientManager.CommandReceived += new CommandReceivedEventHandler(CommandReceived);
     newClientManager.Disconnected += new DisconnectedEventHandler(ClientDisconnected);
     this.CheckForAbnormalDC(newClientManager);
     this.clients.Add(newClientManager);
     this.UpdateConsole("Connected." , newClientManager.IP , newClientManager.Port);
 }