public byte[] NextMessage(string response)
 {
     this.state = this.state.NextState(response);
     return(this.state.ToSend());
 }
 public void Reset()
 {
     this.state = new InitialState(this.username, this.password);
 }
 public void Reset()
 {
     this.state = new InitialState(this.username, this.password);
 }
 public byte[] NextMessage(string response)
 {
     this.state = this.state.NextState(response);
     return this.state.ToSend();
 }
Example #5
0
 public Handshake(string username, string password)
 {
     this.username = username;
     this.password = password;
     this.state    = new InitialState(username, password);
 }