Example #1
0
        public void RemoveClient(GSClient loginClient)
        {
            if (!this._Clients.Contains(loginClient))
                return;

            this._Clients.Remove(loginClient);
        }
Example #2
0
 protected internal void execute(GSClient Client, byte[] buffer)
 {
     _Client = Client;
     _buffer = buffer;
     _offset = 4;
     Read();
     Run();
 }
Example #3
0
 protected internal void execute(GSClient Client, byte[] buffer)
 {
     _Client = Client;
     _buffer = buffer;
     _offset = 4;
     Read();
     Run();
 }
Example #4
0
        public void RemoveClient(GSClient loginClient)
        {
            if (!this._Clients.Contains(loginClient))
            {
                return;
            }

            this._Clients.Remove(loginClient);
        }
Example #5
0
        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);
        }
Example #6
0
        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);
            }
        }