src/share/classes/java/net/ServerSocket.java

Print this page

        

*** 314,324 **** * (IP address and port number). * <p> * If the address is <code>null</code>, then the system will pick up * an ephemeral port and a valid local address to bind the socket. * <p> ! * @param endpoint The IP address & port number to bind to. * @throws IOException if the bind operation fails, or if the socket * is already bound. * @throws SecurityException if a <code>SecurityManager</code> is present and * its <code>checkListen</code> method doesn't allow the operation. * @throws IllegalArgumentException if endpoint is a --- 314,324 ---- * (IP address and port number). * <p> * If the address is <code>null</code>, then the system will pick up * an ephemeral port and a valid local address to bind the socket. * <p> ! * @param endpoint The IP address and port number to bind to. * @throws IOException if the bind operation fails, or if the socket * is already bound. * @throws SecurityException if a <code>SecurityManager</code> is present and * its <code>checkListen</code> method doesn't allow the operation. * @throws IllegalArgumentException if endpoint is a
*** 341,351 **** * pending connections on the socket. Its exact semantics are implementation * specific. In particular, an implementation may impose a maximum length * or may choose to ignore the parameter altogther. The value provided * should be greater than <code>0</code>. If it is less than or equal to * <code>0</code>, then an implementation specific default will be used. ! * @param endpoint The IP address & port number to bind to. * @param backlog requested maximum length of the queue of * incoming connections. * @throws IOException if the bind operation fails, or if the socket * is already bound. * @throws SecurityException if a <code>SecurityManager</code> is present and --- 341,351 ---- * pending connections on the socket. Its exact semantics are implementation * specific. In particular, an implementation may impose a maximum length * or may choose to ignore the parameter altogther. The value provided * should be greater than <code>0</code>. If it is less than or equal to * <code>0</code>, then an implementation specific default will be used. ! * @param endpoint The IP address and port number to bind to. * @param backlog requested maximum length of the queue of * incoming connections. * @throws IOException if the bind operation fails, or if the socket * is already bound. * @throws SecurityException if a <code>SecurityManager</code> is present and
*** 612,622 **** * timeout, a call to accept() for this ServerSocket * will block for only this amount of time. If the timeout expires, * a <B>java.net.SocketTimeoutException</B> is raised, though the * ServerSocket is still valid. The option <B>must</B> be enabled * prior to entering the blocking operation to have effect. The ! * timeout must be > 0. * A timeout of zero is interpreted as an infinite timeout. * @param timeout the specified timeout, in milliseconds * @exception SocketException if there is an error in * the underlying protocol, such as a TCP error. * @since JDK1.1 --- 612,622 ---- * timeout, a call to accept() for this ServerSocket * will block for only this amount of time. If the timeout expires, * a <B>java.net.SocketTimeoutException</B> is raised, though the * ServerSocket is still valid. The option <B>must</B> be enabled * prior to entering the blocking operation to have effect. The ! * timeout must be {@code > 0}. * A timeout of zero is interpreted as an infinite timeout. * @param timeout the specified timeout, in milliseconds * @exception SocketException if there is an error in * the underlying protocol, such as a TCP error. * @since JDK1.1