public interface 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.
|
static Function<ProxySocketConnection,ProxyInfo> |
forProxyType(ProxyInfo.ProxyType proxyType) |
void connect(java.net.Socket socket,
java.lang.String host,
int port,
int timeout)
throws java.io.IOException
socket - 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.static Function<ProxySocketConnection,ProxyInfo> forProxyType(ProxyInfo.ProxyType proxyType)