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, toString
bind, 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, shutdownOutput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getInetAddress, getInputStream, getLocalAddress, getLocalPort, getOutputStream, getReceiveBufferSize, getSendBufferSize, getSoTimeout, isConnected, setReceiveBufferSize, setSendBufferSize, setSoTimeout
public static final int SOCKS4
protected void sendRequest(int command, java.lang.String remoteHost, int remotePort) throws java.io.IOException
sendRequest
in class SocksProxySocket
java.io.IOException
protected void readResponse() throws java.io.IOException
readResponse
in class SocksProxySocket
java.io.IOException
public 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.IOException
java.net.UnknownHostException
Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.