Esempio n. 1
0
        public void RemoveClient(Client loginClient)
        {
            if (!this._Clients.Contains(loginClient))
                return;

            this._Clients.Remove(loginClient);
        }
Esempio n. 2
0
 protected internal void execute(Client Client, byte[] buffer)
 {
     _Client = Client;
     _buffer = buffer;
     _offset = 2;
     Read();
     Run();
 }
Esempio n. 3
0
        public void AddClient(TcpClient tcp)
        {
            // todo block ip
            string ip = tcp.Client.RemoteEndPoint.ToString().Split(':')[0];

            Client client = new Client(tcp);
            if (_Clients.Contains(client))
                Log.Warn("Client is already exists!");
            else
                _Clients.Add(client);
        }