class StandardServerSocket extends ServerSocket
| Constructor and Description |
|---|
StandardServerSocket(I2PServerSocketFull socket)Doesn't really throw IOE but super() does |
| Modifier and Type | Method and Description |
|---|---|
Socket | accept() |
void | bind(SocketAddress endpoint)Binding is not supported. |
void | bind(SocketAddress endpoint,
int backlog)Binding is not supported. |
void | close() |
ServerSocketChannel | getChannel()Channel is not supported. |
InetAddress | getInetAddress()No remote address. |
int | getLocalPort()Local port is not available. |
SocketAddress | getLocalSocketAddress()Port in returned SocketAddress will be zero. |
int | getReceiveBufferSize()Inbound buffer size. |
boolean | getReuseAddress()Reuse address is not supported. |
int | getSoTimeout()Socket timeout. |
boolean | isBound()Always bound. |
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)Socket timeout. |
String | toString() |
implAccept, setSocketFactoryStandardServerSocket(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 IOExceptionclose in interface Closeableclose in interface AutoCloseableclose 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 SocketExceptionsetSoTimeout in class ServerSockettimeout - the timeout in millisecondsSocketException - if the timeout could not be setpublic String toString()
toString in class ServerSocket