/// <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; }
/// <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); }