equal
deleted
inserted
replaced
295 * If an accept operation is already in progress on this channel |
295 * If an accept operation is already in progress on this channel |
296 * @throws NotYetBoundException |
296 * @throws NotYetBoundException |
297 * If this channel's socket has not yet been bound |
297 * If this channel's socket has not yet been bound |
298 */ |
298 */ |
299 public abstract Future<AsynchronousSocketChannel> accept(); |
299 public abstract Future<AsynchronousSocketChannel> accept(); |
|
300 |
|
301 /** |
|
302 * {@inheritDoc} |
|
303 * <p> |
|
304 * If there is a security manager set, its {@code checkConnect} method is |
|
305 * called with the local address and {@code -1} as its arguments to see |
|
306 * if the operation is allowed. If the operation is not allowed, |
|
307 * a {@code SocketAddress} representing the |
|
308 * {@link java.net.InetAddress#getLoopbackAddress loopback} address and the |
|
309 * local port of the channel's socket is returned. |
|
310 * |
|
311 * @return The {@code SocketAddress} that the socket is bound to, or the |
|
312 * {@code SocketAddress} representing the loopback address if |
|
313 * denied by the security manager, or {@code null} if the |
|
314 * channel's socket is not bound |
|
315 * |
|
316 * @throws ClosedChannelException {@inheritDoc} |
|
317 * @throws IOException {@inheritDoc} |
|
318 */ |
|
319 @Override |
|
320 public abstract SocketAddress getLocalAddress() throws IOException; |
300 } |
321 } |