public class MockServerSocket extends ServerSocket
| Constructor and Description |
|---|
MockServerSocket() |
MockServerSocket(int port) |
MockServerSocket(int port,
int backlog) |
MockServerSocket(int port,
int backlog,
InetAddress bindAddr) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
accept() |
void |
bind(SocketAddress endpoint) |
bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toStringpublic MockServerSocket()
throws IOException
IOExceptionpublic MockServerSocket(int port)
throws IOException
IOExceptionpublic MockServerSocket(int port,
int backlog)
throws IOException
IOExceptionpublic MockServerSocket(int port,
int backlog,
InetAddress bindAddr)
throws IOException
IOExceptionpublic Socket accept() throws IOException
accept in class ServerSocketIOExceptionpublic void bind(SocketAddress endpoint) throws IOException
bind in class ServerSocketIOExceptionCopyright © 2016. All rights reserved.