Пример #1
0
        protected override void Negotiate()
        {
            TelnetNegotiator         neg = new TelnetNegotiator(_destination.TerminalType, _destination.InitialWidth, _destination.InitialHeight);
            TelnetTerminalConnection r   = new TelnetTerminalConnection((ITCPParameter)_destination, neg, new PlainPoderosaSocket(_socket));

            //BACK-BURNER r.UsingSocks = _socks!=null;
            _result = r;
        }
Пример #2
0
 public TelnetTerminalConnection(ITCPParameter p, TelnetNegotiator neg, PlainPoderosaSocket s)
     : base(p)
 {
     s.SetOwnerConnection(this);
     _telnetReceiver = new TelnetReceiver(this, neg);
     _telnetSocket   = new TelnetSocket(this, s, _telnetReceiver);
     _rawSocket      = s;
     _socket         = _telnetSocket;
     _terminalOutput = _telnetSocket;
 }
Пример #3
0
 public TelnetReceiver(TelnetTerminalConnection parent, TelnetNegotiator negotiator)
 {
     _parent     = parent;
     _negotiator = negotiator;
     _localdata  = new ByteDataFragment();
 }