jdk/src/share/classes/java/nio/channels/AsynchronousServerSocketChannel.java
changeset 18212 22f8c33b0690
parent 14342 8435a30053c1
child 18274 7c4289125569
equal deleted inserted replaced
18211:74aeb4741e3d 18212:22f8c33b0690
   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 }