public interface ServerSocketFactory
| Modifier and Type | Method and Description |
|---|---|
java.net.ServerSocket |
createServerSocket(int port)
Creates a socket on specified port.
|
java.net.ServerSocket |
createServerSocket(int port,
int backLog)
Creates a socket on specified port with a specified backLog.
|
java.net.ServerSocket |
createServerSocket(int port,
int backLog,
java.net.InetAddress bindAddress)
Creates a socket on a particular network interface on specified port
with a specified backLog.
|
java.net.ServerSocket createServerSocket(int port)
throws java.io.IOException
port - the portjava.io.IOException - if an error occursjava.net.ServerSocket createServerSocket(int port,
int backLog)
throws java.io.IOException
port - the portbackLog - the backLogjava.io.IOException - if an error occursjava.net.ServerSocket createServerSocket(int port,
int backLog,
java.net.InetAddress bindAddress)
throws java.io.IOException
port - the portbackLog - the backLogbindAddress - the network interface to bind to.java.io.IOException - if an error occurs