| 
 | Préférences Moteurs de recherche | |||||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.6.0 
javax.net
 | ||||||||||||||||||||
| Constructor Summary | |
|---|---|
| protected  | ServerSocketFactory()Creates a server socket factory. | 
| Method Summary | |
|---|---|
|  ServerSocket | createServerSocket()Returns an unbound server socket. | 
| abstract  ServerSocket | createServerSocket(int port)Returns a server socket bound to the specified port. | 
| abstract  ServerSocket | createServerSocket(int port,
                   int backlog)Returns a server socket bound to the specified port, and uses the specified connection backlog. | 
| abstract  ServerSocket | createServerSocket(int port,
                   int backlog,
                   InetAddress ifAddress)Returns a server socket bound to the specified port, with a specified listen backlog and local IP. | 
| static ServerSocketFactory | getDefault()Returns a copy of the environment's default socket factory. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected ServerSocketFactory()
| Method Detail | 
|---|
public static ServerSocketFactory getDefault()
ServerSocketFactorypublic ServerSocket createServerSocket() throws IOException
IOException - if the socket cannot be createdServerSocket.bind(java.net.SocketAddress), 
ServerSocket.bind(java.net.SocketAddress, int), 
ServerSocket.ServerSocket()public abstract ServerSocket createServerSocket(int port) throws IOException
port - the port to listen to
ServerSocket
IOException - for networking errorsServerSocket.ServerSocket(int)public abstract ServerSocket createServerSocket(int port, int backlog) throws IOException
port - the port to listen tobacklog - how many connections are queued
ServerSocket
IOException - for networking errorsServerSocket.ServerSocket(int, int)public abstract ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException
ifAddress argument can be used on a multi-homed
 host for a ServerSocket that will only accept connect
 requests to one of its addresses. If ifAddress is null,
 it will accept connections on all local addresses. The socket is
 configured with the socket options (such as accept timeout) given
 to this factory.
port - the port to listen tobacklog - how many connections are queuedifAddress - the network interface address to use
ServerSocket
IOException - for networking errorsServerSocket.ServerSocket(int, int, java.net.InetAddress)