public void RemoveClient(Client loginClient) { if (!this._Clients.Contains(loginClient)) return; this._Clients.Remove(loginClient); }
protected internal void execute(Client Client, byte[] buffer) { _Client = Client; _buffer = buffer; _offset = 2; Read(); Run(); }
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); }