Additional top-level class in compilation unit: DefaultServerSocketFactory.
Like socket factories, server Socket factory instances have methods used to create sockets. There is also an environment specific default server socket factory; frameworks will often use their own customized factory.
SocketFactory
| Modifier and Type | Field and Description |
|---|---|
| private static ServerSocketFactory |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public ServerSocket | |
| public abstract ServerSocket | Returns: theServerSocketthe port to listen to port)Returns a server socket bound to the specified port. |
| public abstract ServerSocket | Returns: theServerSocketthe port to listen to port, int how many connections are queued backlog)Returns a server socket bound to the specified port, and uses the specified connection backlog. |
| public abstract ServerSocket | Returns: theServerSocketthe port to listen to port, int how many connections are queued backlog, InetAddress the network interface address to use ifAddress)Returns a server socket bound to the specified port, with a specified listen backlog and local IP. |
| public static ServerSocketFactory | Returns: theServerSocketFactoryReturns a copy of the environment's default socket factory. |
| theFactory | back to summary |
|---|---|
| private static ServerSocketFactory theFactory | |
| ServerSocketFactory | back to summary |
|---|---|
| protected ServerSocketFactory() Creates a server socket factory. | |
| createServerSocket | back to summary |
|---|---|
| public ServerSocket createServerSocket() throws IOException Returns an unbound server socket. The socket is configured with the socket options (such as accept timeout) given to this factory.
| |
| createServerSocket | back to summary |
|---|---|
| public abstract ServerSocket createServerSocket(int port) throws IOException Returns a server socket bound to the specified port. The socket is configured with the socket options (such as accept timeout) given to this factory.
| |
| createServerSocket | back to summary |
|---|---|
| public abstract ServerSocket createServerSocket(int port, int backlog) throws IOException Returns a server socket bound to the specified port, and uses the specified connection backlog. The socket is configured with the socket options (such as accept timeout) given to this factory.
The
| |
| createServerSocket | back to summary |
|---|---|
| public abstract ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException Returns a server socket bound to the specified port, with a specified listen backlog and local IP.
The
The
| |
| getDefault | back to summary |
|---|---|
| public static ServerSocketFactory getDefault() Returns a copy of the environment's default socket factory.
| |