public class SOCKS4Client extends Object
Modifier and Type | Method and Description |
---|---|
static void |
connect(InputStream pin,
OutputStream pout,
String connHostName,
int connPort)
Act as a SOCKS 4 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 4 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 toIOException
public static void connect(InputStream pin, OutputStream pout, String connHostName, int connPort) throws IOException
connHostName
- hostname for the proxy to connect toconnPort
- port for the proxy to connect toIOException