/** * @param port - the port to listen to * @param backlog - how many connections are queued * @return A ServerSocket * @throws IOException */ public ServerSocket createServerSocket(int port, int backlog) throws IOException { return createServerSocket(port, backlog, null); }
/** * Create a server socket on the specified port (port 0 indicates * an anonymous port). * @param port the port number * @return the server socket on the specified port * @exception IOException if an I/O error occurs during server socket * creation * @since 1.2 */ public ServerSocket createServerSocket(int port) throws IOException { return createServerSocket(port, backlog, bindAddress); }