예제 #1
0
 public SSH1Connection(SSHConnectionParameter param, ISSHConnectionEventReceiver er, string serverversion, string clientversion)
 {
     _param                      = (SSHConnectionParameter)param.Clone();
     _eventReceiver              = er;
     _channel_entries            = new List <object>(16);
     _autoDisconnect             = true;
     _cInfo                      = new SSH1ConnectionInfo();
     _cInfo._serverVersionString = serverversion;
     _cInfo._clientVersionString = clientversion;
     _shellID                    = -1;
     _packetBuilder              = new SSH1PacketBuilder(new SynchronizedSSH1PacketHandler());
 }
예제 #2
0
 public SSH1Connection(SSHConnectionParameter param, ISSHConnectionEventReceiver er, string serverversion, string clientversion)
 {
     _param = (SSHConnectionParameter)param.Clone();
     _eventReceiver = er;
     _channel_entries = new List<object>(16);
     _autoDisconnect = true;
     _cInfo = new SSH1ConnectionInfo();
     _cInfo._serverVersionString = serverversion;
     _cInfo._clientVersionString = clientversion;
     _shellID = -1;
     _packetBuilder = new SSH1PacketBuilder(new SynchronizedSSH1PacketHandler());
 }