Class Socks4ProxySocketFactory
java.lang.Object
javax.net.SocketFactory
jodd.http.net.Socks4ProxySocketFactory
Socket factory for SOCKS4 proxy. This proxy does not do password authentication.
See: http://www.openssh.com/txt/socks5.protocol for more details.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcloseSocket(Socket socket) Closes socket silently.createSocket(String host, int port) createSocket(String host, int port, InetAddress localHost, int localPort) createSocket(InetAddress host, int port) createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) private SocketcreateSocks4ProxySocket(String host, int port) Connects to the SOCKS4 proxy and returns proxified socket.Methods inherited from class SocketFactory
getDefault
-
Field Details
-
proxy
-
connectionTimeout
private final int connectionTimeout
-
-
Constructor Details
-
Socks4ProxySocketFactory
-
-
Method Details
-
createSocket
- Overrides:
createSocketin classSocketFactory
-
createSocket
- Specified by:
createSocketin classSocketFactory
-
createSocket
- Specified by:
createSocketin classSocketFactory
-
createSocket
- Specified by:
createSocketin classSocketFactory
-
createSocket
- Specified by:
createSocketin classSocketFactory
-
createSocks4ProxySocket
-
closeSocket
Closes socket silently.
-