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, 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 SOCKS5
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 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.IOException
java.net.UnknownHostException
Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.