com.mindbright.net
Class SocksProxySocket

java.lang.Object
  extended byjava.net.Socket
      extended bycom.mindbright.net.SocksProxySocket

public class SocksProxySocket
extends java.net.Socket


Method Summary
 java.lang.String getServerDesc()
           
static SocksProxySocket getSocks4Proxy(java.lang.String host, int port, java.lang.String proxyHost, int proxyPort, ProxyAuthenticator auth, java.lang.String userAgent)
           
static SocksProxySocket getSocks4Proxy(java.lang.String targetHost, int targetPort, java.lang.String proxyHost, int proxyPort, java.lang.String userId)
           
static SocksProxySocket getSocks5Proxy(java.lang.String targetHost, int targetPort, java.lang.String proxyHost, int proxyPort, boolean localLookup, ProxyAuthenticator authenticator)
           
static SocksProxySocket getSocks5Proxy(java.lang.String targetHost, int targetPort, java.lang.String proxyHost, int proxyPort, ProxyAuthenticator authenticator)
           
static SocksProxySocket getSocks5Proxy(java.lang.String targetHost, int targetPort, java.lang.String proxyHost, int proxyPort, ProxyAuthenticator auth, java.lang.String userAgent)
           
 java.lang.String toString()
           
 
Methods inherited from class java.net.Socket
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, 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
 

Method Detail

getServerDesc

public java.lang.String getServerDesc()

getSocks4Proxy

public static SocksProxySocket getSocks4Proxy(java.lang.String host,
                                              int port,
                                              java.lang.String proxyHost,
                                              int proxyPort,
                                              ProxyAuthenticator auth,
                                              java.lang.String userAgent)
                                       throws java.io.IOException,
                                              java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException

getSocks4Proxy

public static SocksProxySocket getSocks4Proxy(java.lang.String targetHost,
                                              int targetPort,
                                              java.lang.String proxyHost,
                                              int proxyPort,
                                              java.lang.String userId)
                                       throws java.io.IOException,
                                              java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException

getSocks5Proxy

public static SocksProxySocket getSocks5Proxy(java.lang.String targetHost,
                                              int targetPort,
                                              java.lang.String proxyHost,
                                              int proxyPort,
                                              ProxyAuthenticator auth,
                                              java.lang.String userAgent)
                                       throws java.io.IOException,
                                              java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException

getSocks5Proxy

public static SocksProxySocket getSocks5Proxy(java.lang.String targetHost,
                                              int targetPort,
                                              java.lang.String proxyHost,
                                              int proxyPort,
                                              ProxyAuthenticator authenticator)
                                       throws java.io.IOException,
                                              java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException

getSocks5Proxy

public static SocksProxySocket getSocks5Proxy(java.lang.String targetHost,
                                              int targetPort,
                                              java.lang.String proxyHost,
                                              int proxyPort,
                                              boolean localLookup,
                                              ProxyAuthenticator authenticator)
                                       throws java.io.IOException,
                                              java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException

toString

public java.lang.String toString()