Package org.jivesoftware.smack.proxy
Class Socks5ProxySocketConnection
- java.lang.Object
-
- org.jivesoftware.smack.proxy.Socks5ProxySocketConnection
-
- All Implemented Interfaces:
ProxySocketConnection
public class Socks5ProxySocketConnection extends java.lang.Object implements ProxySocketConnection
Socket factory for Socks5 proxy.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
connect
public void connect(java.net.Socket socket, java.lang.String host, int port, int timeout) throws java.io.IOException
Description copied from interface:ProxySocketConnection
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.- Specified by:
connect
in interfaceProxySocketConnection
- 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:
java.io.IOException
- in case an I/O error occurs.
-
-