public static SocketWithTimeout StartNewConnection(ISocketWithTimeoutClient client, ChannelProfile prof, string password, VerifySSHHostKeyDelegate keycheck) { SocketWithTimeout swt; swt = new SSHConnector(prof, password, keycheck); /* if (Env.Options.UseSocks) swt.AsyncConnect(client, CreateSocksParam(prof.SSHHost, prof.SSHPort)); else*/ swt.AsyncConnect(client, prof.SSHHost, prof.SSHPort); return swt; }
public static SocketWithTimeout StartNewConnection(ISocketWithTimeoutClient client, ChannelProfile prof, string password, VerifySSHHostKeyDelegate keycheck) { SocketWithTimeout swt; swt = new SSHConnector(prof, password, keycheck); /* * if (Env.Options.UseSocks) * swt.AsyncConnect(client, CreateSocksParam(prof.SSHHost, prof.SSHPort)); * else*/ swt.AsyncConnect(client, prof.SSHHost, prof.SSHPort); return(swt); }
public SSHConnector(ChannelProfile prof, string password, VerifySSHHostKeyDelegate keycheck) { _profile = prof; _password = password; _keycheck = keycheck; }