javax.net
public abstract class ServerSocketFactory extends Object
Constructor Summary | |
---|---|
protected | ServerSocketFactory()
Default 0-argument constructor. |
Method Summary | |
---|---|
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. |
Returns: The new server socket.
Throws: IOException If a networking error occurs.
Parameters: port The port to bind the server socket to.
Returns: A server socket bound to port.
Throws: IOException If a networking error occurs.
Returns: The default server socket factory.