jdk/src/java.base/windows/native/libnio/ch/Net.c
changeset 36115 0676e37a0b9c
parent 32232 8d58fc5a0349
child 43100 a7e3457672c7
equal deleted inserted replaced
36114:a5ed9456c9be 36115:0676e37a0b9c
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2016, 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
    91      * Return true if IPv6 is configured
    91      * Return true if IPv6 is configured
    92      */
    92      */
    93     return ipv6_available() ? JNI_TRUE : JNI_FALSE;
    93     return ipv6_available() ? JNI_TRUE : JNI_FALSE;
    94 }
    94 }
    95 
    95 
       
    96 JNIEXPORT jboolean JNICALL
       
    97 Java_sun_nio_ch_Net_isReusePortAvailable0(JNIEnv* env, jclass c1)
       
    98 {
       
    99     // SO_REUSEPORT is not supported on Windows
       
   100     return JNI_FALSE;
       
   101 }
       
   102 
    96 JNIEXPORT jint JNICALL
   103 JNIEXPORT jint JNICALL
    97 Java_sun_nio_ch_Net_isExclusiveBindAvailable(JNIEnv *env, jclass clazz) {
   104 Java_sun_nio_ch_Net_isExclusiveBindAvailable(JNIEnv *env, jclass clazz) {
    98     return 1;
   105     return 1;
    99 }
   106 }
   100 
   107