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, shutdownOutput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getInputStream, getOutputStream
public 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.IOException
java.net.UnknownHostException
java.net.SocketException
public 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.IOException
java.net.UnknownHostException
java.net.SocketException
public java.lang.String getProviderDetail()
getProviderDetail
in interface TransportProvider
public java.lang.String toString()
toString
in class java.net.Socket
public 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.IOException
java.net.UnknownHostException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.