public abstract class SocksProxySocket extends java.net.Socket implements StreamSocket
Modifier and Type | Field and Description |
---|---|
protected static int |
BIND |
protected java.lang.String |
bindingAddress |
protected int |
bindingPort |
protected static int |
CONNECT |
protected static int |
NULL_TERMINATION |
protected java.lang.String |
password |
protected java.lang.String |
providerDetail |
protected java.lang.String |
proxyHost |
protected java.io.InputStream |
proxyIn |
protected java.io.OutputStream |
proxyOut |
protected int |
proxyPort |
protected java.lang.String |
remoteHostname |
protected java.lang.String |
username |
Constructor and Description |
---|
SocksProxySocket() |
Modifier and Type | Method and Description |
---|---|
void |
accept() |
void |
bind(java.lang.String remoteHost) |
void |
connect(java.net.SocketAddress endpoint,
int timeout) |
java.lang.String |
getBindingAddress() |
int |
getBindingPort() |
java.lang.String |
getDetail()
Get details about the socket
|
java.lang.String |
getPassword() |
java.lang.String |
getProxyHost() |
int |
getProxyPort() |
java.lang.String |
getRemoteHost()
Get the actual hostname
|
java.lang.String |
getUsername() |
boolean |
isSecureMode()
Is this socket in secure mode?
|
protected abstract void |
readResponse() |
protected abstract void |
sendRequest(int command,
java.lang.String remoteHost,
int remotePort) |
void |
setPassword(java.lang.String password) |
void |
setProxyHost(java.lang.String proxyHost) |
void |
setProxyPort(int proxyPort) |
void |
setRemoteHost(java.lang.String remoteHost)
Set the remote hostname
|
void |
setUsername(java.lang.String username) |
java.lang.String |
toString() |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getInetAddress, getInputStream, getLocalAddress, getLocalPort, getOutputStream, getReceiveBufferSize, getSendBufferSize, getSoTimeout, isConnected, setReceiveBufferSize, setSendBufferSize, setSoTimeout
protected static final int CONNECT
protected static final int BIND
protected static final int NULL_TERMINATION
protected java.io.InputStream proxyIn
protected java.io.OutputStream proxyOut
protected java.lang.String providerDetail
protected java.lang.String proxyHost
protected int proxyPort
protected java.lang.String username
protected java.lang.String password
protected java.lang.String bindingAddress
protected int bindingPort
protected java.lang.String remoteHostname
public boolean isSecureMode()
isSecureMode
in interface StreamSocket
public java.lang.String getRemoteHost()
getRemoteHost
in interface StreamSocket
public void setRemoteHost(java.lang.String remoteHost)
setRemoteHost
in interface StreamSocket
remoteHost
- remote hostnamepublic java.lang.String getProxyHost()
public void setProxyHost(java.lang.String proxyHost)
public int getProxyPort()
public void setProxyPort(int proxyPort)
public java.lang.String getBindingAddress()
public int getBindingPort()
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public java.lang.String getDetail()
StreamSocket
getDetail
in interface StreamSocket
public java.lang.String toString()
toString
in class java.net.Socket
public void connect(java.net.SocketAddress endpoint, int timeout) throws java.io.IOException
connect
in class java.net.Socket
java.io.IOException
public void bind(java.lang.String remoteHost) throws java.io.IOException
java.io.IOException
public void accept() throws java.io.IOException
java.io.IOException
protected abstract void sendRequest(int command, java.lang.String remoteHost, int remotePort) throws java.io.IOException
java.io.IOException
protected abstract void readResponse() throws java.io.IOException
java.io.IOException
Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.