public class SOCKS5Client extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static void |
connect(InputStream pin,
OutputStream pout,
String connHostName,
int connPort) |
Act as a SOCKS 5 client to connect to a proxy
Will throw and close pin and pout on all errors.
|
static void |
connect(InputStream pin,
OutputStream pout,
String connHostName,
int connPort,
String configUser,
String configPW) |
Act as a SOCKS 5 client to connect to a proxy
Will throw and close pin and pout on all errors.
|
static void |
connect(Socket sock,
String connHostName,
int connPort) |
Act as a SOCKS 5 client to connect to a proxy
Will throw and close sock on all errors.
|
static void |
connect(Socket sock,
String connHostName,
int connPort,
String configUser,
String configPW) |
Act as a SOCKS 5 client to connect to a proxy
Will throw and close sock on all errors.
|
public static void connect(Socket sock, String connHostName, int connPort) throws IOException
sock - socket to the proxyconnHostName - hostname for the proxy to connect toconnPort - port for the proxy to connect toIOExceptionpublic static void connect(Socket sock, String connHostName, int connPort, String configUser, String configPW) throws IOException
sock - socket to the proxyconnHostName - hostname for the proxy to connect toconnPort - port for the proxy to connect toconfigUser - username for proxy authentication or nullconfigPW - password for proxy authentication or nullIOExceptionpublic static void connect(InputStream pin, OutputStream pout, String connHostName, int connPort) throws IOException
pin - input stream from the proxypout - output stream to the proxyconnHostName - hostname for the proxy to connect toconnPort - port for the proxy to connect toIOExceptionpublic static void connect(InputStream pin, OutputStream pout, String connHostName, int connPort, String configUser, String configPW) throws IOException
pin - input stream from the proxypout - output stream to the proxyconnHostName - hostname for the proxy to connect toconnPort - port for the proxy to connect toconfigUser - username for proxy authentication or nullconfigPW - password for proxy authentication or nullIOException