public abstract class ServerSocketFactory extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ServerSocketFactory()
Default 0-argument constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ServerSocket |
createServerSocket()
Create an unbound server socket.
|
abstract ServerSocket |
createServerSocket(int port)
Create a server socket bound to the given port.
|
abstract ServerSocket |
createServerSocket(int port,
int backlog) |
abstract ServerSocket |
createServerSocket(int port,
int backlog,
InetAddress bindAddress) |
static ServerSocketFactory |
getDefault()
Returns the default server socket factory.
|
protected ServerSocketFactory()
public static ServerSocketFactory getDefault()
public ServerSocket createServerSocket() throws IOException
IOException - If a networking error occurs.public abstract ServerSocket createServerSocket(int port) throws IOException
port - The port to bind the server socket to.IOException - If a networking error occurs.public abstract ServerSocket createServerSocket(int port, int backlog) throws IOException
IOExceptionpublic abstract ServerSocket createServerSocket(int port, int backlog, InetAddress bindAddress) throws IOException
IOException