Esempio n. 1
0
 private void CheckForAbnormalDC(OTCNetServerClient mngr)
 {
     if (RemoveClientManager(mngr.IP))
     {
         UpdateConsole("Disconnected.", mngr.IP, mngr.Port);
     }
 }
Esempio n. 2
0
        private void CreateNewClientManager(Socket socket)
        {
            OTCNetServerClient newClientManager = new OTCNetServerClient(socket);

            newClientManager.CommandReceived += new CommandReceivedEventHandler(CommandReceived);
            newClientManager.Disconnected    += new ClientDisconnectedEventHandler(ClientDisconnected);

            CheckForAbnormalDC(newClientManager);
            _clients.Add(newClientManager);

            UpdateConsole("Connected.", newClientManager.IP, newClientManager.Port);
        }