Class Socks5ProxySocketFactory
java.lang.Object
javax.net.SocketFactory
jodd.http.net.Socks5ProxySocketFactory
Socket factory for SOCKS5 proxy.
See: http://www.ietf.org/rfc/rfc1928.txt
-
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 SocketcreateSocks5ProxySocket(String host, int port) private voidreadBytes(InputStream in, byte[] buf, int len) Methods inherited from class SocketFactory
getDefault
-
Field Details
-
proxy
-
connectionTimeout
private final int connectionTimeout
-
-
Constructor Details
-
Socks5ProxySocketFactory
-
-
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
-
createSocks5ProxySocket
-
readBytes
- Throws:
IOException
-
closeSocket
Closes socket silently.
-