com.ibm.etill.framework.clientapi
Class SocksCapableClientSocket

java.lang.Object
  java.net.Socket
      com.ibm.etill.framework.clientapi.SocksCapableClientSocket

public class SocksCapableClientSocket
extends java.net.Socket

This class creates a Socket that connects to a target through a SOCKS server using the SOCKS version 4 protocol.

This class DOES NOT support:

1) The SOCKS V4 extension for handling when you have a target hostname but can't get the IP address of the target host to connect to.

2) SOCKS V5 (any of it ...). If possible, we should stick w/ this class until Java steps up to Socks support in JDK 1.2. I *think* they're going to have version 5 support but I'm not sure.


Constructor Summary
SocksCapableClientSocket(java.lang.String targetHost, int targetPort, java.lang.String socksHost, int socksPort)
Construct a socket with hostname, portnumber, socksHost, and socksPort.
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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

SocksCapableClientSocket

public SocksCapableClientSocket(java.lang.String targetHost,
                                int targetPort,
                                java.lang.String socksHost,
                                int socksPort)
                         throws java.io.IOException
Construct a socket with hostname, portnumber, socksHost, and socksPort.

Feedback