com.jcraft.jsch

Class ProxySOCKS4

Implemented Interfaces:
Proxy

public class ProxySOCKS4
extends java.lang.Object
implements Proxy

Constructor Summary

ProxySOCKS4(String proxy_host)
ProxySOCKS4(String proxy_host, int proxy_port)

Method Summary

void
close()
void
connect(SocketFactory socket_factory, String host, int port, int timeout)
static int
getDefaultPort()
InputStream
getInputStream()
OutputStream
getOutputStream()
Socket
getSocket()
void
setUserPasswd(String user, String passwd)

Constructor Details

ProxySOCKS4

public ProxySOCKS4(String proxy_host)

ProxySOCKS4

public ProxySOCKS4(String proxy_host,
                   int proxy_port)

Method Details

close

public void close()
Specified by:
close in interface Proxy

connect

public void connect(SocketFactory socket_factory,
                    String host,
                    int port,
                    int timeout)
            throws JSchException
Specified by:
connect in interface Proxy

getDefaultPort

public static int getDefaultPort()

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in interface Proxy

getOutputStream

public OutputStream getOutputStream()
Specified by:
getOutputStream in interface Proxy

getSocket

public Socket getSocket()
Specified by:
getSocket in interface Proxy

setUserPasswd

public void setUserPasswd(String user,
                          String passwd)