A class retains miscellaneous informations about a SSH2 connection.
예제 #1
0
        private readonly object _transmitSync = new object();   // for keeping correct packet order

        internal SSH2Connection(SSHConnectionParameter param, AbstractGranadosSocket strm, ISSHConnectionEventReceiver r, string serverversion, string clientversion)
            : base(param, strm, r) {
            _cInfo = new SSH2ConnectionInfo();
            _cInfo._serverVersionString = serverversion;
            _cInfo._clientVersionString = clientversion;

            _packetReceiver = new SynchronizedPacketReceiver(this);
            _packetBuilder = new SSH2PacketBuilder(_packetReceiver);
        }
예제 #2
0
 public KeyExchanger(SSH2Connection con, byte[] sessionID) {
     _connection = con;
     _param = con.Param;
     _cInfo = (SSH2ConnectionInfo)con.ConnectionInfo;
     _sessionID = sessionID;
     _status = Status.INITIAL;
 }
예제 #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="param"></param>
 /// <param name="strm"></param>
 /// <param name="r"></param>
 /// <param name="serverVersion"></param>
 /// <param name="clientVersion"></param>
 public SSH2Connection(SSHConnectionParameter param, IGranadosSocket strm, ISSHConnectionEventReceiver r, string serverVersion, string clientVersion)
     : base(param, strm, r)
 {
     _cInfo = new SSH2ConnectionInfo(param.HostName, param.PortNumber, serverVersion, clientVersion);
     _packetReceiver = new SynchronizedPacketReceiver(this);
     _packetizer = new SSH2Packetizer(_packetReceiver);
 }