public class DefaultServerSocketFactory extends java.lang.Object implements ServerSocketFactory
| Constructor and Description |
|---|
DefaultServerSocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.net.ServerSocket |
createServerSocket(int port) |
java.net.ServerSocket |
createServerSocket(int port,
int backlog)
Returns a server socket which uses all network interfaces on
the host, and is bound to the specified port.
|
java.net.ServerSocket |
createServerSocket(int port,
int backlog,
java.net.InetAddress ifAddress)
Returns a server socket which uses all network interfaces on
the host, is bound to a the specified port, and uses the
specified connection backlog.
|
public java.net.ServerSocket createServerSocket(int port)
throws java.io.IOException
createServerSocket in interface ServerSocketFactoryjava.io.IOExceptionpublic java.net.ServerSocket createServerSocket(int port,
int backlog)
throws java.io.IOException
ServerSocketFactorycreateServerSocket in interface ServerSocketFactoryport - - the port to listen tobacklog - - how many connections are queuedjava.io.IOException - - for networking errorspublic java.net.ServerSocket createServerSocket(int port,
int backlog,
java.net.InetAddress ifAddress)
throws java.io.IOException
ServerSocketFactorycreateServerSocket in interface ServerSocketFactoryport - - the port to listen tobacklog - - how many connections are queuedjava.io.IOException - - for networking errors