Closeable
, AutoCloseable
public class InternalServerSocket extends ServerSocket
Constructor | Description |
---|---|
InternalServerSocket(int port) |
Modifier and Type | Method | Description |
---|---|---|
Socket |
accept() |
|
void |
bind(SocketAddress endpoint) |
Deprecated.
unsupported
|
void |
bind(SocketAddress endpoint,
int backlog) |
Deprecated.
unsupported
|
void |
close() |
|
ServerSocketChannel |
getChannel() |
Returns null as of 0.9.33, prior to that threw IllegalArgumentException
|
InetAddress |
getInetAddress() |
Deprecated.
unsupported
|
int |
getLocalPort() |
|
SocketAddress |
getLocalSocketAddress() |
Deprecated.
unsupported
|
int |
getReceiveBufferSize() |
Deprecated.
unsupported
|
boolean |
getReuseAddress() |
Deprecated.
unsupported
|
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 |
setReceiveBufferSize(int size) |
Deprecated.
unsupported
|
void |
setReuseAddress(boolean on) |
Deprecated.
unsupported
|
void |
setSoTimeout(int timeout) |
warning - unsupported
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOption, implAccept, setOption, setPerformancePreferences, setSocketFactory, supportedOptions
public InternalServerSocket(int port) throws IOException
port
- > 0IOException
public void close()
close
in interface AutoCloseable
close
in interface Closeable
close
in class ServerSocket
public Socket accept() throws IOException
accept
in class ServerSocket
IOException
public String toString()
toString
in class ServerSocket
static void internalConnect(int port, InternalSocket clientSock) throws IOException
port
- > 0IOException
public int getLocalPort()
getLocalPort
in class ServerSocket
public void setSoTimeout(int timeout)
setSoTimeout
in class ServerSocket
public int getSoTimeout()
getSoTimeout
in class ServerSocket
@Deprecated public void bind(SocketAddress endpoint)
bind
in class ServerSocket
@Deprecated public void bind(SocketAddress endpoint, int backlog)
bind
in class ServerSocket
public ServerSocketChannel getChannel()
getChannel
in class ServerSocket
@Deprecated public InetAddress getInetAddress()
getInetAddress
in class ServerSocket
@Deprecated public SocketAddress getLocalSocketAddress()
getLocalSocketAddress
in class ServerSocket
@Deprecated public int getReceiveBufferSize()
getReceiveBufferSize
in class ServerSocket
@Deprecated public boolean getReuseAddress()
getReuseAddress
in class ServerSocket
public boolean isBound()
isBound
in class ServerSocket
public boolean isClosed()
isClosed
in class ServerSocket
@Deprecated public void setReceiveBufferSize(int size)
setReceiveBufferSize
in class ServerSocket
@Deprecated public void setReuseAddress(boolean on)
setReuseAddress
in class ServerSocket
public static void renderStatusHTML(Writer out) throws IOException
IOException