|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.ServerSocket
net.i2p.client.streaming.StandardServerSocket
class StandardServerSocket
Bridge to I2PServerSocket. This extends ServerSocket to make porting apps easier. accept() returns a real Socket (a StandardSocket). accept() throws IOExceptions like ServerSockets do, rather than returning null or throwing I2PExceptions. StandardServerSockets are always bound. You may not create an unbound StandardServerSocket. Create this through the SocketManager.
| Constructor Summary | |
|---|---|
StandardServerSocket(I2PServerSocketFull socket)
Doesn't really throw IOE but super() does |
|
| Method Summary | |
|---|---|
Socket |
accept()
|
void |
bind(SocketAddress endpoint)
|
void |
bind(SocketAddress endpoint,
int backlog)
|
void |
close()
|
ServerSocketChannel |
getChannel()
|
InetAddress |
getInetAddress()
|
int |
getLocalPort()
|
SocketAddress |
getLocalSocketAddress()
|
int |
getReceiveBufferSize()
|
boolean |
getReuseAddress()
|
int |
getSoTimeout()
|
boolean |
isBound()
|
boolean |
isClosed()
|
void |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
Does nothing. |
void |
setReceiveBufferSize(int size)
Does nothing. |
void |
setReuseAddress(boolean on)
Does nothing. |
void |
setSoTimeout(int timeout)
|
String |
toString()
|
| Methods inherited from class java.net.ServerSocket |
|---|
implAccept, setSocketFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
StandardServerSocket(I2PServerSocketFull socket)
throws IOException
IOException| Method Detail |
|---|
public Socket accept()
throws IOException
accept in class ServerSocketIOExceptionpublic void bind(SocketAddress endpoint)
bind in class ServerSocketUnsupportedOperationException - always
public void bind(SocketAddress endpoint,
int backlog)
bind in class ServerSocketUnsupportedOperationException - always
public void close()
throws IOException
close in class ServerSocketIOExceptionpublic ServerSocketChannel getChannel()
getChannel in class ServerSocketpublic InetAddress getInetAddress()
getInetAddress in class ServerSocketpublic int getLocalPort()
getLocalPort in class ServerSocketpublic SocketAddress getLocalSocketAddress()
getLocalSocketAddress in class ServerSocketpublic int getReceiveBufferSize()
getReceiveBufferSize in class ServerSocketpublic boolean getReuseAddress()
getReuseAddress in class ServerSocketpublic int getSoTimeout()
getSoTimeout in class ServerSocketpublic boolean isBound()
isBound in class ServerSocketpublic boolean isClosed()
isClosed in class ServerSocket
public void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
setPerformancePreferences in class ServerSocketpublic void setReceiveBufferSize(int size)
setReceiveBufferSize in class ServerSocketpublic void setReuseAddress(boolean on)
setReuseAddress in class ServerSocket
public void setSoTimeout(int timeout)
throws SocketException
setSoTimeout in class ServerSocketSocketExceptionpublic String toString()
toString in class ServerSocket
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||