Beispiel #1
0
        /*
         * public TelnetCode[] RefusedOptions {
         *      get {
         *              return (TelnetCode[])_refusedOptions.ToArray(typeof(TelnetCode));
         *      }
         * }
         */

        public TelnetNegotiator(TerminalParam param, int width, int height)
        {
            _param             = param;
            _refusedOptions    = new ArrayList();
            _width             = width;
            _height            = height;
            _warnings          = new ArrayList();
            _state             = TelnetCode.NA;
            _sequenceBuffer    = new MemoryStream();
            _optionWriter      = new TelnetOptionWriter();
            _defaultOptionSent = false;
        }
 public override void Resize(int width, int height)
 {
     base.Resize(width, height);
     if(!_closed) {
         TelnetOptionWriter wr = new TelnetOptionWriter();
         wr.WriteTerminalSize(width, height);
         wr.WriteTo(_socket);
     }
 }
Beispiel #3
0
 /*
 public TelnetCode[] RefusedOptions {
     get {
         return (TelnetCode[])_refusedOptions.ToArray(typeof(TelnetCode));
     }
 }
 */
 public TelnetNegotiator(TerminalParam param, int width, int height)
 {
     _param = param;
     _refusedOptions = new ArrayList();
     _width = width;
     _height = height;
     _warnings = new ArrayList();
     _state = TelnetCode.NA;
     _sequenceBuffer = new MemoryStream();
     _optionWriter = new TelnetOptionWriter();
     _defaultOptionSent = false;
 }