示例#1
0
 public ClientTalker(TcpClient connection)
 {
     this.serverConnection = connection;
     dhKeyHelper = new DHHelper.DHHelper(true);
     this.socketReader = new StreamReader(this.serverConnection.GetStream());
     this.socketWriter = new StreamWriter(this.serverConnection.GetStream());
 }
示例#2
0
 public ClientHandler(TcpClient connection)
 {
     this.dhKeyHelper = new DHHelper.DHHelper(false);
     this.clientConnection = connection;
     this.authHelper = new AuthenticationHelper();
     this.userName = String.Empty;
     this.isAuthenticated = false;
     this.socketReader = new StreamReader(this.clientConnection.GetStream());
     this.socketWriter = new StreamWriter(this.clientConnection.GetStream());
     this.probeTimeSpan = new TimeSpan(0, 0, Helper.GlobalConstants.ProbeInterval);
 }