public class SocksProxySocket extends java.net.Socket implements TransportProvider
| Modifier and Type | Method and Description |
|---|---|
static SocksProxySocket |
connectViaSocks4Proxy(java.lang.String remoteHost,
int remotePort,
java.lang.String proxyHost,
int proxyPort,
java.lang.String userId) |
static SocksProxySocket |
connectViaSocks5Proxy(java.lang.String remoteHost,
int remotePort,
java.lang.String proxyHost,
int proxyPort,
boolean localLookup,
java.lang.String username,
java.lang.String password) |
static SocksProxySocket |
connectViaSocks5Proxy(java.lang.String remoteHost,
int remotePort,
java.lang.String proxyHost,
int proxyPort,
java.lang.String username,
java.lang.String password) |
java.lang.String |
getProviderDetail() |
java.lang.String |
toString() |
bind, close, connect, 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, getInputStream, getOutputStreampublic static final int SOCKS4
public static final int SOCKS5
public static SocksProxySocket connectViaSocks4Proxy(java.lang.String remoteHost, int remotePort, java.lang.String proxyHost, int proxyPort, java.lang.String userId) throws java.io.IOException, java.net.UnknownHostException
remoteHost - remotePort - proxyHost - proxyPort - userId - java.io.IOExceptionjava.net.UnknownHostExceptionjava.net.SocketExceptionpublic static SocksProxySocket connectViaSocks5Proxy(java.lang.String remoteHost, int remotePort, java.lang.String proxyHost, int proxyPort, boolean localLookup, java.lang.String username, java.lang.String password) throws java.io.IOException, java.net.UnknownHostException
remoteHost - remotePort - proxyHost - proxyPort - localLookup - username - password - java.io.IOExceptionjava.net.UnknownHostExceptionjava.net.SocketExceptionpublic java.lang.String getProviderDetail()
getProviderDetail in interface TransportProviderpublic java.lang.String toString()
toString in class java.net.Socketpublic static SocksProxySocket connectViaSocks5Proxy(java.lang.String remoteHost, int remotePort, java.lang.String proxyHost, int proxyPort, java.lang.String username, java.lang.String password) throws java.io.IOException, java.net.UnknownHostException
remoteHost - remotePort - proxyHost - proxyPort - username - password - java.io.IOExceptionjava.net.UnknownHostExceptionCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.