|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.util.proxy.ProxyServerSocket
public class ProxyServerSocket
Supports no proxy or SOCKS proxies. HTTP proxies not supported (as they can't do active mode).
| Field Summary | |
|---|---|
protected java.net.InetAddress |
localAddress
|
protected ProxySettings |
proxySettings
|
protected int |
receivesize
|
protected int |
sendsize
|
protected StreamServerSocket |
serverSocket
|
protected SocksProxySocket |
socksSocket
|
protected int |
timeout
|
| Constructor Summary | |
|---|---|
ProxyServerSocket(ProxySettings proxySettings)
|
|
| Method Summary | |
|---|---|
StreamSocket |
acceptConnection()
Accept a connection |
void |
bind(int port,
java.net.InetAddress addr)
Bind server socket to a port to listen on |
void |
close()
Close the socket |
java.net.InetAddress |
getLocalAddress()
|
int |
getLocalPort()
|
int |
getReceiveBufferSize()
Gets the value of SO_RCVBUF |
int |
getSendBufferSize()
Get value of the SO_SNDBUF option |
protected StreamServerSocket |
getServerSocket()
|
int |
getSoTimeout()
Returns setting for SO_TIMEOUT. |
void |
setLocalAddress(java.net.InetAddress addr)
|
void |
setReceiveBufferSize(int size)
Sets the SO_RCVBUF option |
void |
setSendBufferSize(int size)
Sets the SO_SNDBUF option |
void |
setSoTimeout(int timeout)
Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ProxySettings proxySettings
protected StreamServerSocket serverSocket
protected SocksProxySocket socksSocket
protected java.net.InetAddress localAddress
protected int timeout
protected int receivesize
protected int sendsize
| Constructor Detail |
|---|
public ProxyServerSocket(ProxySettings proxySettings)
| Method Detail |
|---|
public int getLocalPort()
public java.net.InetAddress getLocalAddress()
throws java.io.IOException
java.io.IOExceptionpublic void setLocalAddress(java.net.InetAddress addr)
public void setSoTimeout(int timeout)
throws java.io.IOException
timeout -
java.net.SocketException
java.io.IOException
public int getSoTimeout()
throws java.io.IOException
java.io.IOException
public int getReceiveBufferSize()
throws java.net.SocketException
java.net.SocketException
public void setReceiveBufferSize(int size)
throws java.net.SocketException
java.net.SocketException
public void setSendBufferSize(int size)
throws java.net.SocketException
java.net.SocketException
public int getSendBufferSize()
throws java.net.SocketException
java.net.SocketException
public void bind(int port,
java.net.InetAddress addr)
throws java.io.IOException
port - addr -
java.io.IOException
protected StreamServerSocket getServerSocket()
throws java.io.IOException
java.io.IOException
public StreamSocket acceptConnection()
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||