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()); }
public KeyExchanger(SSH2Connection con, byte[] sessionID) { _con = con; _param = con.Param(); _cInfo = (SSH2ConnectionInfo)con.ConnectionInfo(); _sessionID = sessionID; _status = Status.INITIAL; }