Closeable, AutoCloseableclass StandardServerSocket extends ServerSocket
| Constructor | Description |
|---|---|
StandardServerSocket(I2PServerSocketFull socket) |
Doesn't really throw IOE but super() does
|
| Modifier and Type | Method | Description |
|---|---|---|
Socket |
accept() |
|
void |
bind(SocketAddress endpoint) |
|
void |
bind(SocketAddress endpoint,
int backlog) |
|
void |
close() |
|
ServerSocketChannel |
getChannel() |
|
InetAddress |
getInetAddress() |
|
int |
getLocalPort() |
|
SocketAddress |
getLocalSocketAddress() |
Port in returned SocketAddress will be zero.
|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOption, implAccept, setOption, setSocketFactory, supportedOptionsStandardServerSocket(I2PServerSocketFull socket) throws IOException
IOExceptionpublic Socket accept() throws IOException
accept in class ServerSocketIOExceptionpublic void bind(SocketAddress endpoint)
bind in class ServerSocketUnsupportedOperationException - alwayspublic void bind(SocketAddress endpoint, int backlog)
bind in class ServerSocketUnsupportedOperationException - alwayspublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose 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 ServerSocketpublic 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 ServerSocketpublic void setSoTimeout(int timeout)
throws SocketException
setSoTimeout in class ServerSocketSocketExceptionpublic String toString()
toString in class ServerSocket