chainProxy, defaultProxy, directHosts, in, out, proxyHost, proxyIP, proxyPort, proxySocket, SOCKS_ADDR_NOT_SUPPORTED, SOCKS_AUTH_FAILURE, SOCKS_AUTH_NOT_SUPPORTED, SOCKS_BADCONNECT, SOCKS_BADNETWORK, SOCKS_CMD_NOT_SUPPORTED, SOCKS_CONNECTION_REFUSED, SOCKS_DIRECT_FAILED, SOCKS_FAILURE, SOCKS_HOST_UNREACHABLE, SOCKS_JUST_ERROR, SOCKS_METHOD_NOTSUPPORTED, SOCKS_NO_PROXY, SOCKS_PROXY_IO_ERROR, SOCKS_PROXY_NO_CONNECT, SOCKS_SUCCESS, SOCKS_TTL_EXPIRE, version
Constructor and Description |
---|
Socks4Proxy(InetAddress proxyIP,
int proxyPort,
String user)
Creates the SOCKS4 proxy
|
Socks4Proxy(Proxy p,
InetAddress proxyIP,
int proxyPort,
String user)
Creates the SOCKS4 proxy
|
Socks4Proxy(Proxy p,
String proxyHost,
int proxyPort,
String user)
Creates the SOCKS4 proxy
|
Socks4Proxy(String proxyHost,
int proxyPort,
String user)
Creates the SOCKS4 proxy
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a clone of this proxy.
|
protected Proxy |
copy() |
protected ProxyMessage |
formMessage(InputStream in) |
protected ProxyMessage |
formMessage(int cmd,
InetAddress ip,
int port) |
protected ProxyMessage |
formMessage(int cmd,
String host,
int port) |
accept, addDirect, addDirect, addDirect, bind, bind, connect, connect, endSession, exchange, getChainProxy, getDefaultProxy, getDirect, getInetAddress, getPort, isDirect, isDirect, parseProxy, readMsg, sendMsg, setChainProxy, setDefaultProxy, setDefaultProxy, setDefaultProxy, setDefaultProxy, setDefaultProxy, setDirect, startSession, toString, udpAssociate, udpAssociate
public Socks4Proxy(Proxy p, String proxyHost, int proxyPort, String user) throws UnknownHostException
p
- Proxy to use to connect to this proxy, allows proxy chaining.proxyHost
- Address of the proxy server.proxyPort
- Port of the proxy serveruser
- User name to use for identification purposes.UnknownHostException
- If proxyHost can't be resolved.public Socks4Proxy(String proxyHost, int proxyPort, String user) throws UnknownHostException
proxyHost
- Address of the proxy server.proxyPort
- Port of the proxy serveruser
- User name to use for identification purposes.UnknownHostException
- If proxyHost can't be resolved.public Socks4Proxy(Proxy p, InetAddress proxyIP, int proxyPort, String user)
p
- Proxy to use to connect to this proxy, allows proxy chaining.proxyIP
- Address of the proxy server.proxyPort
- Port of the proxy serveruser
- User name to use for identification purposes.public Socks4Proxy(InetAddress proxyIP, int proxyPort, String user)
proxyIP
- Address of the proxy server.proxyPort
- Port of the proxy serveruser
- User name to use for identification purposes.public Object clone()
protected ProxyMessage formMessage(int cmd, InetAddress ip, int port)
formMessage
in class Proxy
protected ProxyMessage formMessage(int cmd, String host, int port) throws UnknownHostException
formMessage
in class Proxy
UnknownHostException
protected ProxyMessage formMessage(InputStream in) throws SocksException, IOException
formMessage
in class Proxy
SocksException
IOException
Copyright © 2024. All rights reserved.