/// <summary> /// Initializes a new instance of the <see cref="UserInfo"/> class. /// </summary> /// <param name="user"> /// The user. /// </param> /// <param name="pass"> /// The pass. /// </param> /// <param name="conn"> /// The conn. /// </param> public UserInfo(string user, string pass, Client conn) { this.UserName = user; this.PasswordHash = pass; this.LoggedIn = true; this.Connection = conn; }
/// <summary> /// The listen. /// </summary> internal void Listen() { // Listen to incoming connections. while (this.Running) { TcpClient tcpClient = this.Server.AcceptTcpClient(); // Accept incoming connection. // TODO Setup the client verification part var client = new Client(this, tcpClient); client.Start(); } }