DefaultSocketFactory
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. |
Socket | createSocket(String host, int port) Creates a Socket connected to the given host and port. |
Socket | createSocket(InetAddress address, int port) Creates a Socket connected to the given host and port. |
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. |
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. |
public ServerSocket createServerSocket(int port)
- If an I/O error occurs while creating
the ServerSocket.public ServerSocket createServerSocket(int port, int backlog)
- If an I/O error occurs while creating
the ServerSocket.public ServerSocket createServerSocket(int port, int backlog, InetAddress bindAddr)
- If an I/O error occurs while creating
the ServerSocket.public Socket createSocket(InetAddress address, int port)
- If an I/O error occurs while creating the Socket.public Socket createSocket(InetAddress address, int port, InetAddress localAddr, int localPort)
- If an I/O error occurs while creating the Socket.public Socket createSocket(String host, int port)
- If the hostname cannot be resolved. - If an I/O error occurs while creating the Socket.public Socket createSocket(String host, int port, InetAddress localAddr, int localPort)
- If the hostname cannot be resolved. - If an I/O error occurs while creating the Socket.