Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/windows/classes/sun/nio/ch/sctp/SctpChannelImpl.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.MessageInfo;34import com.sun.nio.sctp.NotificationHandler;35import com.sun.nio.sctp.SctpChannel;36import com.sun.nio.sctp.SctpSocketOption;3738/**39* Unimplemented.40*/41public class SctpChannelImpl extends SctpChannel42{43private static final String message = "SCTP not supported on this platform";4445public SctpChannelImpl(SelectorProvider provider) {46super(provider);47throw new UnsupportedOperationException(message);48}4950@Override51public Association association() {52throw new UnsupportedOperationException(message);53}5455@Override56public SctpChannel bind(SocketAddress local)57throws IOException {58throw new UnsupportedOperationException(message);59}6061@Override62public SctpChannel bindAddress(InetAddress address)63throws IOException {64throw new UnsupportedOperationException(message);65}6667@Override68public SctpChannel unbindAddress(InetAddress address)69throws IOException {70throw new UnsupportedOperationException(message);71}7273@Override74public boolean connect(SocketAddress remote) throws IOException {75throw new UnsupportedOperationException(message);76}7778@Override79public boolean connect(SocketAddress remote, int maxOutStreams,80int maxInStreams) throws IOException {81throw new UnsupportedOperationException(message);82}8384@Override85public boolean isConnectionPending() {86throw new UnsupportedOperationException(message);87}8889@Override90public boolean finishConnect() throws IOException {91throw new UnsupportedOperationException(message);92}9394@Override95public Set<SocketAddress> getAllLocalAddresses()96throws IOException {97throw new UnsupportedOperationException(message);98}99100@Override101public Set<SocketAddress> getRemoteAddresses()102throws IOException {103throw new UnsupportedOperationException(message);104}105106@Override107public SctpChannel shutdown() throws IOException {108throw new UnsupportedOperationException(message);109}110111@Override112public <T> T getOption(SctpSocketOption<T> name)113throws IOException {114throw new UnsupportedOperationException(message);115}116117@Override118public <T> SctpChannel setOption(SctpSocketOption<T> name, T value)119throws IOException {120throw new UnsupportedOperationException(message);121}122123@Override124public Set<SctpSocketOption<?>> supportedOptions() {125throw new UnsupportedOperationException(message);126}127128@Override129public <T> MessageInfo receive(ByteBuffer dst, T attachment,130NotificationHandler<T> handler) throws IOException {131throw new UnsupportedOperationException(message);132}133134@Override135public int send(ByteBuffer src, MessageInfo messageInfo)136throws IOException {137throw new UnsupportedOperationException(message);138}139140@Override141protected void implConfigureBlocking(boolean block) throws IOException {142throw new UnsupportedOperationException(message);143}144145@Override146public void implCloseSelectableChannel() throws IOException {147throw new UnsupportedOperationException(message);148}149}150151152