Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/windows/native/java/net/ExtendedOptionsImpl.c
32287 views
/*1* Copyright (c) 2014, 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*/2425#include <jni.h>26#include <string.h>2728#include "net_util.h"2930/*31* Class: sun_net_ExtendedOptionsImpl32* Method: init33* Signature: ()V34*/35JNIEXPORT void JNICALL Java_sun_net_ExtendedOptionsImpl_init36(JNIEnv *env, jclass UNUSED)37{38}3940/* Non Solaris. Functionality is not supported. So, throw UnsupportedOpExc */4142JNIEXPORT void JNICALL Java_sun_net_ExtendedOptionsImpl_setFlowOption43(JNIEnv *env, jclass UNUSED, jobject fileDesc, jobject flow) {44JNU_ThrowByName(env, "java/lang/UnsupportedOperationException",45"unsupported socket option");46}4748JNIEXPORT void JNICALL Java_sun_net_ExtendedOptionsImpl_getFlowOption49(JNIEnv *env, jclass UNUSED, jobject fileDesc, jobject flow) {50JNU_ThrowByName(env, "java/lang/UnsupportedOperationException",51"unsupported socket option");52}5354static jboolean flowSupported0() {55return JNI_FALSE;56}5758JNIEXPORT jboolean JNICALL Java_sun_net_ExtendedOptionsImpl_flowSupported59(JNIEnv *env, jclass UNUSED) {60return JNI_FALSE;61}6263/* Keepalive options not supported */6465/*66* Class: sun_net_ExtendedOptionsImpl67* Method: keepAliveOptionsSupported68* Signature: ()Z69*/70JNIEXPORT jboolean JNICALL Java_sun_net_ExtendedOptionsImpl_keepAliveOptionsSupported71(JNIEnv *env, jobject unused) {72return JNI_FALSE;73}7475/*76* Class: sun_net_ExtendedOptionsImpl77* Method: setTcpKeepAliveProbes78* Signature: (II)V79*/80JNIEXPORT void JNICALL Java_sun_net_ExtendedOptionsImpl_setTcpKeepAliveProbes81(JNIEnv *env, jobject unused, jobject fileDesc, jint optval) {82JNU_ThrowByName(env, "java/lang/UnsupportedOperationException",83"unsupported socket option");84}8586/*87* Class: sun_net_ExtendedOptionsImpl88* Method: setTcpKeepAliveTime89* Signature: (II)V90*/91JNIEXPORT void JNICALL Java_sun_net_ExtendedOptionsImpl_setTcpKeepAliveTime92(JNIEnv *env, jobject unused, jobject fileDesc, jint optval) {93JNU_ThrowByName(env, "java/lang/UnsupportedOperationException",94"unsupported socket option");95}9697/*98* Class: sun_net_ExtendedOptionsImpl99* Method: setTcpKeepAliveIntvl100* Signature: (II)V101*/102JNIEXPORT void JNICALL Java_sun_net_ExtendedOptionsImpl_setTcpKeepAliveIntvl103(JNIEnv *env, jobject unused, jobject fileDesc, jint optval) {104JNU_ThrowByName(env, "java/lang/UnsupportedOperationException",105"unsupported socket option");106}107108/*109* Class: sun_net_ExtendedOptionsImpl110* Method: getTcpKeepAliveProbes111* Signature: (I)I;112*/113JNIEXPORT jint JNICALL Java_sun_net_ExtendedOptionsImpl_getTcpKeepAliveProbes114(JNIEnv *env, jobject unused, jobject fileDesc) {115JNU_ThrowByName(env, "java/lang/UnsupportedOperationException",116"unsupported socket option");117}118119/*120* Class: sun_net_ExtendedOptionsImpl121* Method: getTcpKeepAliveTime122* Signature: (I)I;123*/124JNIEXPORT jint JNICALL Java_sun_net_ExtendedOptionsImpl_getTcpKeepAliveTime125(JNIEnv *env, jobject unused, jobject fileDesc) {126JNU_ThrowByName(env, "java/lang/UnsupportedOperationException",127"unsupported socket option");128}129130/*131* Class: sun_net_ExtendedOptionsImpl132* Method: getTcpKeepAliveIntvl133* Signature: (I)I;134*/135JNIEXPORT jint JNICALL Java_sun_net_ExtendedOptionsImpl_getTcpKeepAliveIntvl136(JNIEnv *env, jobject unused, jobject fileDesc) {137JNU_ThrowByName(env, "java/lang/UnsupportedOperationException",138"unsupported socket option");139}140141142