org.apache.commons.net
public class DefaultSocketFactory extends SocketFactory
See Also: SocketFactory SocketClient SocketClient
Method Summary | |
---|---|
ServerSocket | createServerSocket(int port)
Creates a ServerSocket bound to a specified port. |
ServerSocket | createServerSocket(int port, int backlog)
Creates a ServerSocket bound to a specified port with a given
maximum queue length for incoming connections. |
ServerSocket | createServerSocket(int port, int backlog, InetAddress bindAddr)
Creates a ServerSocket bound to a specified port on a given local
address with a given maximum queue length for incoming connections.
|
Parameters: port The port on which to listen, or 0 to use any free port.
Returns: A ServerSocket that will listen on a specified port.
Throws: IOException If an I/O error occurs while creating the ServerSocket.
Parameters: port The port on which to listen, or 0 to use any free port. backlog The maximum length of the queue for incoming connections.
Returns: A ServerSocket that will listen on a specified port.
Throws: IOException If an I/O error occurs while creating the ServerSocket.
Parameters: port The port on which to listen, or 0 to use any free port. backlog The maximum length of the queue for incoming connections. bindAddr The local address to which the ServerSocket should bind.
Returns: A ServerSocket that will listen on a specified port.
Throws: IOException If an I/O error occurs while creating the ServerSocket.