Esempio n. 1
0
 public TelnetConnection(SSHConnectionParameter param, ISSHConnectionEventReceiver r, StreamSocket s)
 {
     _param = (SSHConnectionParameter)param.Clone();
     _eventReceiver = r;
     _autoDisconnect = true;
     socket = s;
 }
Esempio n. 2
0
        public SSH2Connection(SSHConnectionParameter param, ISSHConnectionEventReceiver r, string serverversion, string clientversion)
        {
            _param = (SSHConnectionParameter)param.Clone();
            _eventReceiver = r;
            _channel_entries = new List<object>(16);
            _autoDisconnect = true;
            _cInfo = new SSH2ConnectionInfo();
            _cInfo._serverVersionString = serverversion;
            _cInfo._clientVersionString = clientversion;

            _packetBuilder = new SSH2PacketBuilder(new SynchronizedSSH2PacketHandler());
        }