Inheritance: Poderosa.PortForwarding.SocketWithTimeout
Exemplo n.º 1
0
 public static SocketWithTimeout StartNewConnection(ISocketWithTimeoutClient client, ChannelProfile prof, string password, HostKeyCheckCallback 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;
 }
Exemplo n.º 2
0
        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);
        }