| java.lang.Object org.apache.commons.net.DefaultSocketFactory
Method Summary | |
public ServerSocket | createServerSocket(int port) Creates a ServerSocket bound to a specified port. | public ServerSocket | createServerSocket(int port, int backlog) Creates a ServerSocket bound to a specified port with a given
maximum queue length for incoming connections. | public 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.
A port of 0 will
create the ServerSocket on a system-determined free port.
Parameters: port - The port on which to listen, or 0 to use any free port. Parameters: backlog - The maximum length of the queue for incoming connections. Parameters: bindAddr - The local address to which the ServerSocket should bind. | public Socket | createSocket(String host, int port) Creates a Socket connected to the given host and port.
Parameters: host - The hostname to connect to. Parameters: port - The port to connect to. | public Socket | createSocket(InetAddress address, int port) Creates a Socket connected to the given host and port.
Parameters: address - The address of the host to connect to. Parameters: port - The port to connect to. | public Socket | createSocket(String host, int port, InetAddress localAddr, int localPort) Creates a Socket connected to the given host and port and
originating from the specified local address and port.
Parameters: host - The hostname to connect to. Parameters: port - The port to connect to. Parameters: localAddr - The local address to use. Parameters: localPort - The local port to use. | public Socket | createSocket(InetAddress address, int port, InetAddress localAddr, int localPort) Creates a Socket connected to the given host and port and
originating from the specified local address and port.
Parameters: address - The address of the host to connect to. Parameters: port - The port to connect to. Parameters: localAddr - The local address to use. Parameters: localPort - The local port to use. |
createServerSocket | public ServerSocket createServerSocket(int port) throws IOException(Code) | | Creates a ServerSocket bound to a specified port. A port
of 0 will create the ServerSocket on a system-determined free port.
Parameters: port - The port on which to listen, or 0 to use any free port. A ServerSocket that will listen on a specified port. exception: IOException - If an I/O error occurs while creatingthe ServerSocket. |
createServerSocket | public ServerSocket createServerSocket(int port, int backlog) throws IOException(Code) | | Creates a ServerSocket bound to a specified port with a given
maximum queue length for incoming connections. A port of 0 will
create the ServerSocket on a system-determined free port.
Parameters: port - The port on which to listen, or 0 to use any free port. Parameters: backlog - The maximum length of the queue for incoming connections. A ServerSocket that will listen on a specified port. exception: IOException - If an I/O error occurs while creatingthe ServerSocket. |
createServerSocket | public ServerSocket createServerSocket(int port, int backlog, InetAddress bindAddr) throws IOException(Code) | | Creates a ServerSocket bound to a specified port on a given local
address with a given maximum queue length for incoming connections.
A port of 0 will
create the ServerSocket on a system-determined free port.
Parameters: port - The port on which to listen, or 0 to use any free port. Parameters: backlog - The maximum length of the queue for incoming connections. Parameters: bindAddr - The local address to which the ServerSocket should bind. A ServerSocket that will listen on a specified port. exception: IOException - If an I/O error occurs while creatingthe ServerSocket. |
createSocket | public Socket createSocket(String host, int port) throws UnknownHostException, IOException(Code) | | Creates a Socket connected to the given host and port.
Parameters: host - The hostname to connect to. Parameters: port - The port to connect to. A Socket connected to the given host and port. exception: UnknownHostException - If the hostname cannot be resolved. exception: IOException - If an I/O error occurs while creating the Socket. |
createSocket | public Socket createSocket(InetAddress address, int port) throws IOException(Code) | | Creates a Socket connected to the given host and port.
Parameters: address - The address of the host to connect to. Parameters: port - The port to connect to. A Socket connected to the given host and port. exception: IOException - If an I/O error occurs while creating the Socket. |
createSocket | public Socket createSocket(String host, int port, InetAddress localAddr, int localPort) throws UnknownHostException, IOException(Code) | | Creates a Socket connected to the given host and port and
originating from the specified local address and port.
Parameters: host - The hostname to connect to. Parameters: port - The port to connect to. Parameters: localAddr - The local address to use. Parameters: localPort - The local port to use. A Socket connected to the given host and port. exception: UnknownHostException - If the hostname cannot be resolved. exception: IOException - If an I/O error occurs while creating the Socket. |
createSocket | public Socket createSocket(InetAddress address, int port, InetAddress localAddr, int localPort) throws IOException(Code) | | Creates a Socket connected to the given host and port and
originating from the specified local address and port.
Parameters: address - The address of the host to connect to. Parameters: port - The port to connect to. Parameters: localAddr - The local address to use. Parameters: localPort - The local port to use. A Socket connected to the given host and port. exception: IOException - If an I/O error occurs while creating the Socket. |
|
|