Package org.jivesoftware.smack.proxy
Interface ProxySocketConnection
-
- All Known Implementing Classes:
Socks4ProxySocketConnection
,Socks5ProxySocketConnection
public interface ProxySocketConnection
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
connect(Socket socket, 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)
-
-
-
Method Detail
-
connect
void connect(Socket socket, String host, int port, int timeout) throws IOException
Initiate a connection to the given host on the given port. Note that the caller is responsible for closing the socket in case this method throws.- Parameters:
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.- Throws:
IOException
- in case an I/O error occurs.
-
forProxyType
static Function<ProxySocketConnection,ProxyInfo> forProxyType(ProxyInfo.ProxyType proxyType)
-
-