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 socketcreation
@since 1.2
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 socketcreation
@since JDK1.1
Returns an unbound server socket. The socket is configured with the socket options (such as accept timeout) given to this factory.
@return
@throws IOException
If the port is 0, use the provided range. Otherwise if the port is not 0, test to make sure the port is within range.
@param port The port to create.
@return A ServerSocket bound to an available port
@throws IOException If the port cannot be created.
@throws IllegalArgumentException if a non-zero port is provided that is outside of the range
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.