示例#1
0
 /// <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)
     };
 }
示例#2
0
 /// <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();
 }
示例#3
0
 /// <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;
 }
示例#4
0
 /// <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();
 }
示例#5
0
 /// <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;
 }