Package one.nio.net
Class SocksProxy
java.lang.Object
one.nio.net.SocksProxy
- All Implemented Interfaces:
Proxy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate static StringgetErrorMessage(byte b) private voidreadResponse(Socket socket, byte[] buf, byte authMethod)
-
Field Details
-
proxyHost
-
proxyPort
private final int proxyPort -
user
-
password
-
-
Constructor Details
-
SocksProxy
-
-
Method Details
-
withAuth
-
connect
- Specified by:
connectin interfaceProxy- Throws:
IOException
-
readResponse
- Throws:
IOException
-
getErrorMessage
-