public class Socks5ProxySocket extends SocksProxySocket
| Modifier and Type | Field and Description |
|---|---|
static int |
SOCKS5 |
BIND, bindingAddress, bindingPort, CONNECT, NULL_TERMINATION, password, providerDetail, proxyHost, proxyIn, proxyOut, proxyPort, remoteHostname, username| Constructor and Description |
|---|
Socks5ProxySocket() |
| Modifier and Type | Method and Description |
|---|---|
static Socks5ProxySocket |
connectViaSocks5Proxy(java.lang.String remoteHost,
int remotePort,
java.lang.String proxyHost,
int proxyPort,
int timeout,
java.lang.String username,
java.lang.String password) |
protected void |
readResponse() |
protected void |
sendRequest(int command,
java.lang.String remoteHost,
int remotePort) |
accept, bind, connect, getBindingAddress, getBindingPort, getDetail, getPassword, getProxyHost, getProxyPort, getRemoteHost, getUsername, isSecureMode, setPassword, setProxyHost, setProxyPort, setRemoteHost, setUsername, toStringbind, close, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutputclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getInetAddress, getInputStream, getLocalAddress, getLocalPort, getOutputStream, getReceiveBufferSize, getSendBufferSize, getSoTimeout, isConnected, setReceiveBufferSize, setSendBufferSize, setSoTimeoutpublic static final int SOCKS5
protected void sendRequest(int command,
java.lang.String remoteHost,
int remotePort)
throws java.io.IOException
sendRequest in class SocksProxySocketjava.io.IOExceptionprotected void readResponse()
throws java.io.IOException
readResponse in class SocksProxySocketjava.io.IOExceptionpublic static Socks5ProxySocket connectViaSocks5Proxy(java.lang.String remoteHost, int remotePort, java.lang.String proxyHost, int proxyPort, int timeout, java.lang.String username, java.lang.String password) throws java.io.IOException, java.net.UnknownHostException
java.io.IOExceptionjava.net.UnknownHostExceptionCopyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.