Esempio n. 1
0
 public void WriteTo(AbstractGuevaraSocket target)
 {
     byte[] data = _strm.ToArray();
     target.Transmit(data, 0, data.Length);
     target.Flush();
 }
Esempio n. 2
0
 public TelnetTerminalConnection(TerminalParam p, TelnetNegotiator neg, AbstractGuevaraSocket s, int width, int height)
     : base(p, width, height)
 {
     _socket = s;
     _negotiator = neg;
 }
Esempio n. 3
0
        public void Flush(AbstractGuevaraSocket s)
        {
            if(!_defaultOptionSent) {
                WriteDefaultOptions();
                _defaultOptionSent = true;
            }

            if(_optionWriter.Length > 0) {
                _optionWriter.WriteTo(s);
                s.Flush();
                _optionWriter.Clear();
            }
        }