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 byte[] NextMessage(string response) { this.state = this.state.NextState(response); return this.state.ToSend(); }
public Handshake(string username, string password) { this.username = username; this.password = password; this.state = new InitialState(username, password); }