|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.ServerSocket
jist.runtime.ProxyPoint.ProxyServerSocket
public static class ProxyPoint.ProxyServerSocket
A ServerSocket that operates via the ProxyPoint proxy.
Field Summary | |
---|---|
private int |
port
listen port. |
private java.net.InetSocketAddress |
proxy
host and port of proxy server. |
private java.net.Socket |
s
outgoing connection to proxy server. |
Constructor Summary | |
---|---|
ProxyPoint.ProxyServerSocket(java.net.InetAddress proxyhost,
int proxyport,
int port)
Create a new proxied ServerSocket. |
Method Summary | |
---|---|
java.net.Socket |
accept()
|
int |
getLocalPort()
|
private void |
primeProxy()
Open an outgoing connection to the proxy server, if one does not already exist. |
Methods inherited from class java.net.ServerSocket |
---|
bind, bind, close, getChannel, getInetAddress, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.net.InetSocketAddress proxy
private int port
private java.net.Socket s
Constructor Detail |
---|
public ProxyPoint.ProxyServerSocket(java.net.InetAddress proxyhost, int proxyport, int port) throws java.io.IOException
proxyhost
- hostname of proxy serverproxyport
- port of proxy serverport
- listen port
java.io.IOException
- when i/o failsMethod Detail |
---|
private void primeProxy() throws java.io.IOException
java.io.IOException
- when i/o failspublic java.net.Socket accept() throws java.io.IOException
accept
in class java.net.ServerSocket
java.io.IOException
public int getLocalPort()
getLocalPort
in class java.net.ServerSocket
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |