src/java.base/share/classes/java/nio/channels/DatagramChannel.java
changeset 58518 705c3f88a409
parent 58501 6fc4a729763e
child 58679 9c3209ff7550
child 58803 1bd307ea5497
equal deleted inserted replaced
58517:252e7f4c4d92 58518:705c3f88a409
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   326      * that it is invoked.
   326      * that it is invoked.
   327      *
   327      *
   328      * <p> If this channel's socket is not connected, or if the channel is
   328      * <p> If this channel's socket is not connected, or if the channel is
   329      * closed, then invoking this method has no effect.  </p>
   329      * closed, then invoking this method has no effect.  </p>
   330      *
   330      *
       
   331      * @apiNote If this method throws an IOException, the channel's socket
       
   332      * may be left in an unspecified state. It is strongly recommended that
       
   333      * the channel be closed when disconnect fails.
       
   334      *
   331      * @return  This datagram channel
   335      * @return  This datagram channel
   332      *
   336      *
   333      * @throws  IOException
   337      * @throws  IOException
   334      *          If some other I/O error occurs
   338      *          If some other I/O error occurs
   335      */
   339      */