public void RemoveClient(GSClient loginClient) { if (!this._Clients.Contains(loginClient)) return; this._Clients.Remove(loginClient); }
protected internal void execute(GSClient Client, byte[] buffer) { _Client = Client; _buffer = buffer; _offset = 4; Read(); Run(); }
protected internal void execute(GSClient Client, byte[] buffer) { _Client = Client; _buffer = buffer; _offset = 4; Read(); Run(); }
public void RemoveClient(GSClient loginClient) { if (!this._Clients.Contains(loginClient)) { return; } this._Clients.Remove(loginClient); }
public void AddClient(TcpClient tcp) { // todo block ip string ip = tcp.Client.RemoteEndPoint.ToString().Split(':')[0]; GSClient client = new GSClient(tcp); if (_Clients.Contains(client)) Log.Warn("Client is already exists!"); else _Clients.Add(client); }
public void AddClient(TcpClient tcp) { // todo block ip string ip = tcp.Client.RemoteEndPoint.ToString().Split(':')[0]; GSClient client = new GSClient(tcp); if (_Clients.Contains(client)) { Log.Warn("Client is already exists!"); } else { _Clients.Add(client); } }