Exemplo n.º 1
0
        public void RemoveClient(GSClient loginClient)
        {
            if (!this._Clients.Contains(loginClient))
                return;

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

            this._Clients.Remove(loginClient);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
            }
        }