Exemplo n.º 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)
     };
 }
Exemplo n.º 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();
 }
Exemplo n.º 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;
 }
Exemplo n.º 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();
 }
Exemplo n.º 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;
 }