Beispiel #1
0
        /// <summary>
        /// Create a new client based on the newly connected socket.
        /// </summary>
        /// <param name="aSocket">The socket of the client.</param>
        public Client(TcpSocket aSocket)
        {
            mSocket = aSocket;
            mCipher = new TqCipher();

            AccountID = 0;
            Account   = "@INVALID_ACC@";
            IsBanned  = false;
        }
Beispiel #2
0
        /// <summary>
        /// Create a new client based on the newly connected socket.
        /// </summary>
        /// <param name="aSocket">The socket of the client.</param>
        public Client(TcpSocket aSocket)
        {
            mSocket = aSocket;
            mCipher = new TqCipher();

            Account   = null;
            AccountID = 0;

            mNetworkWorker = null;
            Server.NetworkIO.AddClient(this, ref mNetworkWorker);
        }