|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.Socket
com.sshtools.j2ssh.net.SocksProxySocket
public class SocksProxySocket
Field Summary | |
---|---|
static int |
SOCKS4
|
static int |
SOCKS5
|
Method Summary | |
---|---|
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()
|
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, 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.sshtools.j2ssh.net.TransportProvider |
---|
close, getInputStream, getOutputStream |
Field Detail |
---|
public static final int SOCKS4
public static final int SOCKS5
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |