src/share/classes/com/sun/nio/sctp/SctpMultiChannel.java

Print this page




 145      */
 146     protected SctpMultiChannel(SelectorProvider provider) {
 147         super(provider);
 148     }
 149 
 150     /**
 151      * Opens an SCTP multi channel.
 152      *
 153      * <P> The new channel is unbound.
 154      *
 155      * @return  A new SCTP multi channel
 156      *
 157      * @throws UnsupportedOperationException
 158      *         If the SCTP protocol is not supported
 159      *
 160      * @throws  IOException
 161      *          If an I/O error occurs
 162      */
 163     public static SctpMultiChannel open() throws
 164         IOException {
 165         return new sun.nio.ch.SctpMultiChannelImpl((SelectorProvider)null);
 166     }
 167 
 168     /**
 169      * Returns the open associations on this channel's socket.
 170      *
 171      * <P> Only associations whose {@link AssociationChangeNotification.AssocChangeEvent#COMM_UP
 172      * COMM_UP} association change event has been received are included
 173      * in the returned set of associations. Associations for which a
 174      * {@link AssociationChangeNotification.AssocChangeEvent#COMM_LOST COMM_LOST} or {@link
 175      * AssociationChangeNotification.AssocChangeEvent#SHUTDOWN SHUTDOWN} association change
 176      * event have been receive are removed from the set of associations.
 177      *
 178      * <P> The returned set of associations is a snapshot of the open
 179      * associations at the time that this method is invoked.
 180      *
 181      * @return  A {@code Set} containing the open associations, or an empty
 182      *          {@code Set} if there are none.
 183      *
 184      * @throws  ClosedChannelException
 185      *          If this channel is closed




 145      */
 146     protected SctpMultiChannel(SelectorProvider provider) {
 147         super(provider);
 148     }
 149 
 150     /**
 151      * Opens an SCTP multi channel.
 152      *
 153      * <P> The new channel is unbound.
 154      *
 155      * @return  A new SCTP multi channel
 156      *
 157      * @throws UnsupportedOperationException
 158      *         If the SCTP protocol is not supported
 159      *
 160      * @throws  IOException
 161      *          If an I/O error occurs
 162      */
 163     public static SctpMultiChannel open() throws
 164         IOException {
 165         return new sun.nio.ch.sctp.SctpMultiChannelImpl((SelectorProvider)null);
 166     }
 167 
 168     /**
 169      * Returns the open associations on this channel's socket.
 170      *
 171      * <P> Only associations whose {@link AssociationChangeNotification.AssocChangeEvent#COMM_UP
 172      * COMM_UP} association change event has been received are included
 173      * in the returned set of associations. Associations for which a
 174      * {@link AssociationChangeNotification.AssocChangeEvent#COMM_LOST COMM_LOST} or {@link
 175      * AssociationChangeNotification.AssocChangeEvent#SHUTDOWN SHUTDOWN} association change
 176      * event have been receive are removed from the set of associations.
 177      *
 178      * <P> The returned set of associations is a snapshot of the open
 179      * associations at the time that this method is invoked.
 180      *
 181      * @return  A {@code Set} containing the open associations, or an empty
 182      *          {@code Set} if there are none.
 183      *
 184      * @throws  ClosedChannelException
 185      *          If this channel is closed