public class InternalServerSocket extends ServerSocket
| Constructor and Description |
|---|
InternalServerSocket(int port) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
accept() |
void |
close() |
ServerSocketChannel |
getChannel()
Returns null as of 0.9.33, prior to that threw IllegalArgumentException
|
int |
getLocalPort() |
int |
getSoTimeout() |
(package private) static void |
internalConnect(int port,
InternalSocket clientSock)
This is how the client connects.
|
boolean |
isBound()
Returns true as of 0.9.33, prior to that threw IllegalArgumentException
|
boolean |
isClosed()
Supported as of 0.9.33, prior to that threw IllegalArgumentException
|
static void |
renderStatusHTML(Writer out)
For debugging only
|
void |
setSoTimeout(int timeout)
warning - unsupported
|
String |
toString() |
bind, bind, getInetAddress, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, implAccept, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactorypublic InternalServerSocket(int port)
throws IOException
port - > 0IOExceptionpublic Socket accept() throws IOException
accept in class ServerSocketIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class ServerSocketpublic ServerSocketChannel getChannel()
getChannel in class ServerSocketpublic int getLocalPort()
getLocalPort in class ServerSocketpublic int getSoTimeout()
getSoTimeout in class ServerSocketstatic void internalConnect(int port,
InternalSocket clientSock)
throws IOException
port - > 0IOExceptionpublic boolean isBound()
isBound in class ServerSocketpublic boolean isClosed()
isClosed in class ServerSocketpublic static void renderStatusHTML(Writer out) throws IOException
IOExceptionpublic void setSoTimeout(int timeout)
setSoTimeout in class ServerSocketpublic String toString()
toString in class ServerSocket