Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/windows/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java
32301 views
/*1* Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/24package sun.nio.ch.sctp;2526import java.net.SocketAddress;27import java.net.InetAddress;28import java.io.IOException;29import java.util.Set;30import java.nio.ByteBuffer;31import java.nio.channels.spi.SelectorProvider;32import com.sun.nio.sctp.Association;33import com.sun.nio.sctp.SctpChannel;34import com.sun.nio.sctp.MessageInfo;35import com.sun.nio.sctp.NotificationHandler;36import com.sun.nio.sctp.SctpMultiChannel;37import com.sun.nio.sctp.SctpSocketOption;3839/**40* Unimplemented.41*/42public class SctpMultiChannelImpl extends SctpMultiChannel43{44private static final String message = "SCTP not supported on this platform";4546public SctpMultiChannelImpl(SelectorProvider provider) {47super(provider);48throw new UnsupportedOperationException(message);49}5051@Override52public Set<Association> associations() {53throw new UnsupportedOperationException(message);54}5556@Override57public SctpMultiChannel bind(SocketAddress local,58int backlog) throws IOException {59throw new UnsupportedOperationException(message);60}6162@Override63public SctpMultiChannel bindAddress(InetAddress address)64throws IOException {65throw new UnsupportedOperationException(message);66}6768@Override69public SctpMultiChannel unbindAddress(InetAddress address)70throws IOException {71throw new UnsupportedOperationException(message);72}7374@Override75public Set<SocketAddress> getAllLocalAddresses()76throws IOException {77throw new UnsupportedOperationException(message);78}7980@Override81public Set<SocketAddress> getRemoteAddresses82(Association association) throws IOException {83throw new UnsupportedOperationException(message);84}8586@Override87public SctpMultiChannel shutdown(Association association)88throws IOException {89throw new UnsupportedOperationException(message);90}9192@Override93public <T> T getOption(SctpSocketOption<T> name,94Association association) throws IOException {95throw new UnsupportedOperationException(message);96}9798@Override99public <T> SctpMultiChannel setOption(SctpSocketOption<T> name,100T value, Association association) throws IOException {101throw new UnsupportedOperationException(message);102}103104@Override105public Set<SctpSocketOption<?>> supportedOptions() {106throw new UnsupportedOperationException(message);107}108109@Override110public <T> MessageInfo receive(ByteBuffer buffer, T attachment,111NotificationHandler<T> handler) throws IOException {112throw new UnsupportedOperationException(message);113}114115@Override116public int send(ByteBuffer buffer, MessageInfo messageInfo)117throws IOException {118throw new UnsupportedOperationException(message);119}120121@Override122public SctpChannel branch(Association association)123throws IOException {124throw new UnsupportedOperationException(message);125}126127@Override128protected void implConfigureBlocking(boolean block) throws IOException {129throw new UnsupportedOperationException(message);130}131132@Override133public void implCloseSelectableChannel() throws IOException {134throw new UnsupportedOperationException(message);135}136}137138139