Пример #1
0
        public UserObject(Socket socket, uint now)
        {
            this.sock          = socket;
            this.sock.Blocking = false;
            this.timestamp     = now;
            this.ExternalIP    = ((IPEndPoint)this.sock.RemoteEndPoint).Address;
            UserPool.SetID(this);
            this.Cookie       = now;
            this.LastFastPing = now;

            while (UserPool.Users.Find(x => x.LoggedIn && x.Cookie == this.Cookie) != null)
            {
                this.Cookie++;
            }

            this.Ignores    = new List <String>();
            this.VCIgnores  = new List <String>();
            this.CustomTags = new List <String>();
        }