SetOwnerConnection() public method

public SetOwnerConnection ( TerminalConnection con ) : void
con TerminalConnection
return void
 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;
 }
Beispiel #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;
 }