com.enterprisedt.util.proxy
Class Socks5ProxySocket

java.lang.Object
  extended by java.net.Socket
      extended by com.enterprisedt.util.proxy.SocksProxySocket
          extended by com.enterprisedt.util.proxy.Socks5ProxySocket
All Implemented Interfaces:
StreamSocket

public class Socks5ProxySocket
extends SocksProxySocket

Version:
$Revision: 1.2 $
Author:
$author$

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

SOCKS5

public static final int SOCKS5
See Also:
Constant Field Values
Constructor Detail

Socks5ProxySocket

public Socks5ProxySocket()
Method Detail

sendRequest

protected void sendRequest(int command,
                           java.lang.String remoteHost,
                           int remotePort)
                    throws java.io.IOException
Specified by:
sendRequest in class SocksProxySocket
Throws:
java.io.IOException

readResponse

protected void readResponse()
                     throws java.io.IOException
Specified by:
readResponse in class SocksProxySocket
Throws:
java.io.IOException

connectViaSocks5Proxy

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
Throws:
java.io.IOException
java.net.UnknownHostException


Copyright © 2001-2011 Enterprise Distributed Technologies Ltd. All Rights Reserved.