public TelnetConnection(SSHConnectionParameter param, ISSHConnectionEventReceiver r, StreamSocket s) { _param = (SSHConnectionParameter)param.Clone(); _eventReceiver = r; _autoDisconnect = true; socket = s; }
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()); }