public class Socks4ProxySocket extends SocksProxySocket
| Modifier and Type | Field and Description |
|---|---|
static int |
SOCKS4 |
BIND, bindingAddress, bindingPort, CONNECT, NULL_TERMINATION, password, providerDetail, proxyHost, proxyIn, proxyOut, proxyPort, remoteHostname, username| Constructor and Description |
|---|
Socks4ProxySocket() |
| Modifier and Type | Method and Description |
|---|---|
static Socks4ProxySocket |
connectViaSocks4Proxy(java.lang.String remoteHost,
int remotePort,
java.lang.String proxyHost,
int proxyPort,
int timeout,
java.lang.String userId) |
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 SOCKS4
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 Socks4ProxySocket connectViaSocks4Proxy(java.lang.String remoteHost, int remotePort, java.lang.String proxyHost, int proxyPort, int timeout, java.lang.String userId) throws java.io.IOException, java.net.UnknownHostException
java.io.IOExceptionjava.net.UnknownHostExceptionCopyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.