216 * default is used. |
216 * default is used. |
217 * |
217 * |
218 * <p> Note, for <i>Unix Domain</i> channels, a file is created in the file-system |
218 * <p> Note, for <i>Unix Domain</i> channels, a file is created in the file-system |
219 * with the same path name as this channel's bound {@link UnixDomainSocketAddress}. |
219 * with the same path name as this channel's bound {@link UnixDomainSocketAddress}. |
220 * This file persists after the channel is closed, and must be removed before |
220 * This file persists after the channel is closed, and must be removed before |
221 * another channel can bind to the same name. |
221 * another channel can bind to the same name. Also, <i>Unix Domain</i> ServerSocketChannels |
|
222 * must be bound to an explicit address. |
222 * |
223 * |
223 * @param local |
224 * @param local |
224 * The address to bind the socket, or {@code null} to bind to an |
225 * The address to bind the socket, or {@code null} to bind an <i>IP</i> channel to |
225 * automatically assigned socket address |
226 * an automatically assigned socket address |
226 * @param backlog |
227 * @param backlog |
227 * The maximum number of pending connections |
228 * The maximum number of pending connections |
228 * |
229 * |
229 * @return This channel |
230 * @return This channel |
230 * |
231 * |
|
232 * @throws BindException |
|
233 * If this is a <i>Unix domain</i> channel and {@code local} is {@code null} |
231 * @throws AlreadyBoundException |
234 * @throws AlreadyBoundException |
232 * If the socket is already bound |
235 * If the socket is already bound |
233 * @throws UnsupportedAddressTypeException |
236 * @throws UnsupportedAddressTypeException |
234 * If the type of the given address is not supported |
237 * If the type of the given address is not supported |
235 * @throws ClosedChannelException |
238 * @throws ClosedChannelException |