equal
deleted
inserted
replaced
155 * pending connections on the socket. Its exact semantics are implementation |
155 * pending connections on the socket. Its exact semantics are implementation |
156 * specific. In particular, an implementation may impose a maximum length |
156 * specific. In particular, an implementation may impose a maximum length |
157 * or may choose to ignore the parameter altogther. The value provided |
157 * or may choose to ignore the parameter altogther. The value provided |
158 * should be greater than {@code 0}. If it is less than or equal to |
158 * should be greater than {@code 0}. If it is less than or equal to |
159 * {@code 0}, then an implementation specific default will be used. |
159 * {@code 0}, then an implementation specific default will be used. |
160 * <P> |
|
161 * |
160 * |
162 * @param port the port number, or {@code 0} to use a port |
161 * @param port the port number, or {@code 0} to use a port |
163 * number that is automatically allocated. |
162 * number that is automatically allocated. |
164 * @param backlog requested maximum length of the queue of incoming |
163 * @param backlog requested maximum length of the queue of incoming |
165 * connections. |
164 * connections. |
204 * pending connections on the socket. Its exact semantics are implementation |
203 * pending connections on the socket. Its exact semantics are implementation |
205 * specific. In particular, an implementation may impose a maximum length |
204 * specific. In particular, an implementation may impose a maximum length |
206 * or may choose to ignore the parameter altogther. The value provided |
205 * or may choose to ignore the parameter altogther. The value provided |
207 * should be greater than {@code 0}. If it is less than or equal to |
206 * should be greater than {@code 0}. If it is less than or equal to |
208 * {@code 0}, then an implementation specific default will be used. |
207 * {@code 0}, then an implementation specific default will be used. |
209 * <P> |
208 * |
210 * @param port the port number, or {@code 0} to use a port |
209 * @param port the port number, or {@code 0} to use a port |
211 * number that is automatically allocated. |
210 * number that is automatically allocated. |
212 * @param backlog requested maximum length of the queue of incoming |
211 * @param backlog requested maximum length of the queue of incoming |
213 * connections. |
212 * connections. |
214 * @param bindAddr the local InetAddress the server will bind to |
213 * @param bindAddr the local InetAddress the server will bind to |
313 * Binds the {@code ServerSocket} to a specific address |
312 * Binds the {@code ServerSocket} to a specific address |
314 * (IP address and port number). |
313 * (IP address and port number). |
315 * <p> |
314 * <p> |
316 * If the address is {@code null}, then the system will pick up |
315 * If the address is {@code null}, then the system will pick up |
317 * an ephemeral port and a valid local address to bind the socket. |
316 * an ephemeral port and a valid local address to bind the socket. |
318 * <p> |
317 * |
319 * @param endpoint The IP address and port number to bind to. |
318 * @param endpoint The IP address and port number to bind to. |
320 * @throws IOException if the bind operation fails, or if the socket |
319 * @throws IOException if the bind operation fails, or if the socket |
321 * is already bound. |
320 * is already bound. |
322 * @throws SecurityException if a {@code SecurityManager} is present and |
321 * @throws SecurityException if a {@code SecurityManager} is present and |
323 * its {@code checkListen} method doesn't allow the operation. |
322 * its {@code checkListen} method doesn't allow the operation. |