|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.Socket
com.enterprisedt.util.proxy.SocksProxySocket
com.enterprisedt.util.proxy.Socks5ProxySocket
public class Socks5ProxySocket
| Field Summary | |
|---|---|
static int |
SOCKS5
|
| Fields inherited from class com.enterprisedt.util.proxy.SocksProxySocket |
|---|
BIND, bindingAddress, bindingPort, CONNECT, NULL_TERMINATION, password, providerDetail, proxyHost, proxyIn, proxyOut, proxyPort, remoteHostname, username |
| Constructor Summary | |
|---|---|
Socks5ProxySocket()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class com.enterprisedt.util.proxy.SocksProxySocket |
|---|
accept, bind, connect, getBindingAddress, getBindingPort, getDetail, getPassword, getProxyHost, getProxyPort, getRemoteHost, getUsername, isSecureMode, setPassword, setProxyHost, setProxyPort, setRemoteHost, setUsername, toString |
| Methods inherited from class java.net.Socket |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.enterprisedt.util.proxy.StreamSocket |
|---|
close, getInetAddress, getInputStream, getLocalAddress, getLocalPort, getOutputStream, getReceiveBufferSize, getSendBufferSize, getSoTimeout, isConnected, setReceiveBufferSize, setSendBufferSize, setSoTimeout |
| Field Detail |
|---|
public static final int SOCKS5
| Constructor Detail |
|---|
public Socks5ProxySocket()
| Method Detail |
|---|
protected void sendRequest(int command,
java.lang.String remoteHost,
int remotePort)
throws java.io.IOException
sendRequest in class SocksProxySocketjava.io.IOException
protected void readResponse()
throws java.io.IOException
readResponse in class SocksProxySocketjava.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||