| Modifier and Type | Field and Description |
|---|---|
static byte |
AUTHENTICATION_SUCCEEDED |
| Constructor and Description |
|---|
Socks5(InetSocketAddress socketAddress) |
Socks5(InetSocketAddress socketAddress,
String username,
String password) |
Socks5(String host,
int port) |
Socks5(String host,
int port,
ProxyCredentials credentials) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildConnection() |
Socks5 |
copy() |
Socket |
createProxySocket() |
Socks5 |
getChainProxy() |
ProxyCredentials |
getCredentials() |
InetAddress |
getInetAddress() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
int |
getPort() |
Socket |
getProxySocket() |
void |
requestConnect(InetAddress address,
int port) |
void |
requestConnect(SocketAddress address) |
void |
requestConnect(String host,
int port) |
Socks5 |
setCredentials(ProxyCredentials credentials) |
void |
setProxySocket(Socket proxySocket) |
String |
toString() |
public static final byte AUTHENTICATION_SUCCEEDED
public Socks5(InetSocketAddress socketAddress, String username, String password)
public Socks5(String host, int port) throws UnknownHostException
UnknownHostExceptionpublic Socks5(InetSocketAddress socketAddress)
public Socks5(String host, int port, ProxyCredentials credentials) throws UnknownHostException
UnknownHostExceptionpublic void buildConnection()
throws IOException
IOExceptionpublic void requestConnect(String host, int port) throws IOException
IOExceptionpublic void requestConnect(InetAddress address, int port) throws IOException
IOExceptionpublic void requestConnect(SocketAddress address) throws IOException
IOExceptionpublic int getPort()
public Socket getProxySocket()
public void setProxySocket(Socket proxySocket)
public InputStream getInputStream() throws IOException
IOExceptionpublic OutputStream getOutputStream() throws IOException
IOExceptionpublic ProxyCredentials getCredentials()
public Socks5 setCredentials(ProxyCredentials credentials)
public Socks5 copy()
public Socks5 getChainProxy()
public InetAddress getInetAddress()
public Socket createProxySocket() throws IOException
IOExceptionCopyright © 2017. All rights reserved.