/// <summary>Initializes a new instance of the TelnetCodeHandler class.</summary> /// <param name="connection">The connection upon which this telnet code handler is based.</param> public TelnetCodeHandler(Connection connection) { connectionTelnetState = new ConnectionTelnetStateText(this); Connection = connection; telnetOptions = new List <ITelnetOption>() { new TelnetOptionEcho(true, Connection), new TelnetOptionNaws(true, Connection), new TelnetOptionTermType(true, Connection), new TelnetOptionMXP(true, Connection), new TelnetOptionMCCP(true, Connection) }; }
/// <summary>Initializes a new instance of the TelnetCodeHandler class.</summary> /// <param name="connection">The connection upon which this telnet code handler is based.</param> public TelnetCodeHandler(Connection connection) { connectionTelnetState = new ConnectionTelnetStateText(this); this.connection = connection; SetupRequiredOptions(); }
/// <summary>Allows our state classes to change the state being used.</summary> /// <param name="newState">The state to change to</param> internal void ChangeState(ConnectionTelnetState newState) { connectionTelnetState = newState; }
/// <summary> /// Initializes a new instance of the TelnetCodeHandler class. /// </summary> /// <param name="connection">The connection upon which this telnet code handler is based.</param> public TelnetCodeHandler(Connection connection) { this.connectionTelnetState = new ConnectionTelnetStateText(this); this.connection = connection; this.SetupRequiredOptions(); }
/// <summary>Allows our state classes to change the state being used.</summary> /// <param name="newState">The state to change to</param> internal void ChangeState(ConnectionTelnetState newState) { this.connectionTelnetState = newState; }