상속: IPoderosaSocket, ITerminalOutput
 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;
 }
예제 #2
0
        public TelnetTerminalConnection(ITCPParameter p, TelnetNegotiator neg, PlainPoderosaSocket s)
            : base(p)
        {
            s.SetOwnerConnection(this);
            _telnetReceiver = new TelnetReceiver(this, neg);
            ITelnetParameter telnetParams  = (ITelnetParameter)p.GetAdapter(typeof(ITelnetParameter));
            bool             telnetNewLine = (telnetParams != null) ? telnetParams.TelnetNewLine : true /*default*/;

            _telnetSocket   = new TelnetSocket(this, s, _telnetReceiver, telnetNewLine);
            _rawSocket      = s;
            _socket         = _telnetSocket;
            _terminalOutput = _telnetSocket;
        }
 public TelnetTerminalConnection(ITCPParameter p, TelnetNegotiator neg, PlainPoderosaSocket s)
     : base(p)
 {
     s.SetOwnerConnection(this);
     _telnetReceiver = new TelnetReceiver(this, neg);
     ITelnetParameter telnetParams = (ITelnetParameter)p.GetAdapter(typeof(ITelnetParameter));
     bool telnetNewLine = (telnetParams != null) ? telnetParams.TelnetNewLine : true/*default*/;
     _telnetSocket = new TelnetSocket(this, s, _telnetReceiver, telnetNewLine);
     _rawSocket = s;
     _socket = _telnetSocket;
     _terminalOutput = _telnetSocket;
 }