Home | History | Annotate | Download | only in native
      1 /* This file was generated from sun/nio/ch/Net.java and is licensed under the
      2  * same terms. The copyright and license information for sun/nio/ch/Net.java
      3  * follows.
      4  *
      5  * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
      6  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
      7  *
      8  * This code is free software; you can redistribute it and/or modify it
      9  * under the terms of the GNU General Public License version 2 only, as
     10  * published by the Free Software Foundation.  Oracle designates this
     11  * particular file as subject to the "Classpath" exception as provided
     12  * by Oracle in the LICENSE file that accompanied this code.
     13  *
     14  * This code is distributed in the hope that it will be useful, but WITHOUT
     15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     16  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
     17  * version 2 for more details (a copy is included in the LICENSE file that
     18  * accompanied this code).
     19  *
     20  * You should have received a copy of the GNU General Public License version
     21  * 2 along with this work; if not, write to the Free Software Foundation,
     22  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
     23  *
     24  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     25  * or visit www.oracle.com if you need additional information or have any
     26  * questions.
     27  */
     28 /* DO NOT EDIT THIS FILE - it is machine generated */
     29 #include <jni.h>
     30 /* Header for class sun_nio_ch_Net */
     31 
     32 #ifndef _Included_sun_nio_ch_Net
     33 #define _Included_sun_nio_ch_Net
     34 #ifdef __cplusplus
     35 extern "C" {
     36 #endif
     37 #undef sun_nio_ch_Net_SHUT_RD
     38 #define sun_nio_ch_Net_SHUT_RD 0L
     39 #undef sun_nio_ch_Net_SHUT_WR
     40 #define sun_nio_ch_Net_SHUT_WR 1L
     41 #undef sun_nio_ch_Net_SHUT_RDWR
     42 #define sun_nio_ch_Net_SHUT_RDWR 2L
     43 /*
     44  * Class:     sun_nio_ch_Net
     45  * Method:    isIPv6Available0
     46  * Signature: ()Z
     47  */
     48 JNIEXPORT jboolean JNICALL Java_sun_nio_ch_Net_isIPv6Available0
     49   (JNIEnv *, jclass);
     50 
     51 /*
     52  * Class:     sun_nio_ch_Net
     53  * Method:    isExclusiveBindAvailable
     54  * Signature: ()I
     55  */
     56 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_isExclusiveBindAvailable
     57   (JNIEnv *, jclass);
     58 
     59 /*
     60  * Class:     sun_nio_ch_Net
     61  * Method:    canIPv6SocketJoinIPv4Group0
     62  * Signature: ()Z
     63  */
     64 JNIEXPORT jboolean JNICALL Java_sun_nio_ch_Net_canIPv6SocketJoinIPv4Group0
     65   (JNIEnv *, jclass);
     66 
     67 /*
     68  * Class:     sun_nio_ch_Net
     69  * Method:    canJoin6WithIPv4Group0
     70  * Signature: ()Z
     71  */
     72 JNIEXPORT jboolean JNICALL Java_sun_nio_ch_Net_canJoin6WithIPv4Group0
     73   (JNIEnv *, jclass);
     74 
     75 /*
     76  * Class:     sun_nio_ch_Net
     77  * Method:    socket0
     78  * Signature: (ZZZ)I
     79  */
     80 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_socket0
     81   (JNIEnv *, jclass, jboolean, jboolean, jboolean);
     82 
     83 /*
     84  * Class:     sun_nio_ch_Net
     85  * Method:    bind0
     86  * Signature: (Ljava/io/FileDescriptor;ZZLjava/net/InetAddress;I)V
     87  */
     88 JNIEXPORT void JNICALL Java_sun_nio_ch_Net_bind0
     89   (JNIEnv *, jclass, jobject, jboolean, jboolean, jobject, jint);
     90 
     91 /*
     92  * Class:     sun_nio_ch_Net
     93  * Method:    listen
     94  * Signature: (Ljava/io/FileDescriptor;I)V
     95  */
     96 JNIEXPORT void JNICALL Java_sun_nio_ch_Net_listen
     97   (JNIEnv *, jclass, jobject, jint);
     98 
     99 /*
    100  * Class:     sun_nio_ch_Net
    101  * Method:    connect0
    102  * Signature: (ZLjava/io/FileDescriptor;Ljava/net/InetAddress;I)I
    103  */
    104 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_connect0
    105   (JNIEnv *, jclass, jboolean, jobject, jobject, jint);
    106 
    107 /*
    108  * Class:     sun_nio_ch_Net
    109  * Method:    shutdown
    110  * Signature: (Ljava/io/FileDescriptor;I)V
    111  */
    112 JNIEXPORT void JNICALL Java_sun_nio_ch_Net_shutdown
    113   (JNIEnv *, jclass, jobject, jint);
    114 
    115 /*
    116  * Class:     sun_nio_ch_Net
    117  * Method:    localPort
    118  * Signature: (Ljava/io/FileDescriptor;)I
    119  */
    120 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_localPort
    121   (JNIEnv *, jclass, jobject);
    122 
    123 /*
    124  * Class:     sun_nio_ch_Net
    125  * Method:    localInetAddress
    126  * Signature: (Ljava/io/FileDescriptor;)Ljava/net/InetAddress;
    127  */
    128 JNIEXPORT jobject JNICALL Java_sun_nio_ch_Net_localInetAddress
    129   (JNIEnv *, jclass, jobject);
    130 
    131 /*
    132  * Class:     sun_nio_ch_Net
    133  * Method:    remotePort
    134  * Signature: (Ljava/io/FileDescriptor;)I
    135  */
    136 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_remotePort
    137   (JNIEnv *, jclass, jobject);
    138 
    139 /*
    140  * Class:     sun_nio_ch_Net
    141  * Method:    remoteInetAddress
    142  * Signature: (Ljava/io/FileDescriptor;)Ljava/net/InetAddress;
    143  */
    144 JNIEXPORT jobject JNICALL Java_sun_nio_ch_Net_remoteInetAddress
    145   (JNIEnv *, jclass, jobject);
    146 
    147 /*
    148  * Class:     sun_nio_ch_Net
    149  * Method:    getIntOption0
    150  * Signature: (Ljava/io/FileDescriptor;ZII)I
    151  */
    152 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_getIntOption0
    153   (JNIEnv *, jclass, jobject, jboolean, jint, jint);
    154 
    155 /*
    156  * Class:     sun_nio_ch_Net
    157  * Method:    setIntOption0
    158  * Signature: (Ljava/io/FileDescriptor;ZIII)V
    159  */
    160 JNIEXPORT void JNICALL Java_sun_nio_ch_Net_setIntOption0
    161   (JNIEnv *, jclass, jobject, jboolean, jint, jint, jint);
    162 
    163 /*
    164  * Class:     sun_nio_ch_Net
    165  * Method:    joinOrDrop4
    166  * Signature: (ZLjava/io/FileDescriptor;III)I
    167  */
    168 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_joinOrDrop4
    169   (JNIEnv *, jclass, jboolean, jobject, jint, jint, jint);
    170 
    171 /*
    172  * Class:     sun_nio_ch_Net
    173  * Method:    blockOrUnblock4
    174  * Signature: (ZLjava/io/FileDescriptor;III)I
    175  */
    176 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_blockOrUnblock4
    177   (JNIEnv *, jclass, jboolean, jobject, jint, jint, jint);
    178 
    179 /*
    180  * Class:     sun_nio_ch_Net
    181  * Method:    joinOrDrop6
    182  * Signature: (ZLjava/io/FileDescriptor;[BI[B)I
    183  */
    184 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_joinOrDrop6
    185   (JNIEnv *, jclass, jboolean, jobject, jbyteArray, jint, jbyteArray);
    186 
    187 /*
    188  * Class:     sun_nio_ch_Net
    189  * Method:    blockOrUnblock6
    190  * Signature: (ZLjava/io/FileDescriptor;[BI[B)I
    191  */
    192 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_blockOrUnblock6
    193   (JNIEnv *, jclass, jboolean, jobject, jbyteArray, jint, jbyteArray);
    194 
    195 /*
    196  * Class:     sun_nio_ch_Net
    197  * Method:    setInterface4
    198  * Signature: (Ljava/io/FileDescriptor;I)V
    199  */
    200 JNIEXPORT void JNICALL Java_sun_nio_ch_Net_setInterface4
    201   (JNIEnv *, jclass, jobject, jint);
    202 
    203 /*
    204  * Class:     sun_nio_ch_Net
    205  * Method:    getInterface4
    206  * Signature: (Ljava/io/FileDescriptor;)I
    207  */
    208 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_getInterface4
    209   (JNIEnv *, jclass, jobject);
    210 
    211 /*
    212  * Class:     sun_nio_ch_Net
    213  * Method:    setInterface6
    214  * Signature: (Ljava/io/FileDescriptor;I)V
    215  */
    216 JNIEXPORT void JNICALL Java_sun_nio_ch_Net_setInterface6
    217   (JNIEnv *, jclass, jobject, jint);
    218 
    219 /*
    220  * Class:     sun_nio_ch_Net
    221  * Method:    getInterface6
    222  * Signature: (Ljava/io/FileDescriptor;)I
    223  */
    224 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_getInterface6
    225   (JNIEnv *, jclass, jobject);
    226 
    227 /*
    228  * Class:     sun_nio_ch_Net
    229  * Method:    initIDs
    230  * Signature: ()V
    231  */
    232 JNIEXPORT void JNICALL Java_sun_nio_ch_Net_initIDs
    233   (JNIEnv *, jclass);
    234 
    235 #ifdef __cplusplus
    236 }
    237 #endif
    238 #endif
    239