public class Socks4ProxySocketConnection extends java.lang.Object implements ProxySocketConnection
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.net.Socket socket,
java.lang.String host,
int port,
int timeout)
Initiate a connection to the given host on the given port.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforProxyTypepublic void connect(java.net.Socket socket,
java.lang.String host,
int port,
int timeout)
throws java.io.IOException
ProxySocketConnectionconnect in interface ProxySocketConnectionsocket - the socket to use to initiate the connection to the proxy.host - the host to connect to.port - the port to connect to.timeout - the timeout in milliseconds.java.io.IOException - in case an I/O error occurs.