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: (ZZZZ)I 79 */ 80 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_socket0 81 (JNIEnv *, jclass, jboolean, 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;ZIIIZ)V 159 */ 160 JNIEXPORT void JNICALL Java_sun_nio_ch_Net_setIntOption0 161 (JNIEnv *, jclass, jobject, jboolean, jint, jint, jint, jboolean); 162 163 /* 164 * Class: sun_nio_ch_Net 165 * Method: poll 166 * Signature: (Ljava/io/FileDescriptor;IJ)I 167 */ 168 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_poll 169 (JNIEnv *, jclass, jobject, jint, jlong); 170 171 /* 172 * Class: sun_nio_ch_Net 173 * Method: joinOrDrop4 174 * Signature: (ZLjava/io/FileDescriptor;III)I 175 */ 176 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_joinOrDrop4 177 (JNIEnv *, jclass, jboolean, jobject, jint, jint, jint); 178 179 /* 180 * Class: sun_nio_ch_Net 181 * Method: blockOrUnblock4 182 * Signature: (ZLjava/io/FileDescriptor;III)I 183 */ 184 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_blockOrUnblock4 185 (JNIEnv *, jclass, jboolean, jobject, jint, jint, jint); 186 187 /* 188 * Class: sun_nio_ch_Net 189 * Method: joinOrDrop6 190 * Signature: (ZLjava/io/FileDescriptor;[BI[B)I 191 */ 192 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_joinOrDrop6 193 (JNIEnv *, jclass, jboolean, jobject, jbyteArray, jint, jbyteArray); 194 195 /* 196 * Class: sun_nio_ch_Net 197 * Method: blockOrUnblock6 198 * Signature: (ZLjava/io/FileDescriptor;[BI[B)I 199 */ 200 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_blockOrUnblock6 201 (JNIEnv *, jclass, jboolean, jobject, jbyteArray, jint, jbyteArray); 202 203 /* 204 * Class: sun_nio_ch_Net 205 * Method: setInterface4 206 * Signature: (Ljava/io/FileDescriptor;I)V 207 */ 208 JNIEXPORT void JNICALL Java_sun_nio_ch_Net_setInterface4 209 (JNIEnv *, jclass, jobject, jint); 210 211 /* 212 * Class: sun_nio_ch_Net 213 * Method: getInterface4 214 * Signature: (Ljava/io/FileDescriptor;)I 215 */ 216 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_getInterface4 217 (JNIEnv *, jclass, jobject); 218 219 /* 220 * Class: sun_nio_ch_Net 221 * Method: setInterface6 222 * Signature: (Ljava/io/FileDescriptor;I)V 223 */ 224 JNIEXPORT void JNICALL Java_sun_nio_ch_Net_setInterface6 225 (JNIEnv *, jclass, jobject, jint); 226 227 /* 228 * Class: sun_nio_ch_Net 229 * Method: getInterface6 230 * Signature: (Ljava/io/FileDescriptor;)I 231 */ 232 JNIEXPORT jint JNICALL Java_sun_nio_ch_Net_getInterface6 233 (JNIEnv *, jclass, jobject); 234 235 /* 236 * Class: sun_nio_ch_Net 237 * Method: pollinValue 238 * Signature: ()S 239 */ 240 JNIEXPORT jshort JNICALL Java_sun_nio_ch_Net_pollinValue 241 (JNIEnv *, jclass); 242 243 /* 244 * Class: sun_nio_ch_Net 245 * Method: polloutValue 246 * Signature: ()S 247 */ 248 JNIEXPORT jshort JNICALL Java_sun_nio_ch_Net_polloutValue 249 (JNIEnv *, jclass); 250 251 /* 252 * Class: sun_nio_ch_Net 253 * Method: pollerrValue 254 * Signature: ()S 255 */ 256 JNIEXPORT jshort JNICALL Java_sun_nio_ch_Net_pollerrValue 257 (JNIEnv *, jclass); 258 259 /* 260 * Class: sun_nio_ch_Net 261 * Method: pollhupValue 262 * Signature: ()S 263 */ 264 JNIEXPORT jshort JNICALL Java_sun_nio_ch_Net_pollhupValue 265 (JNIEnv *, jclass); 266 267 /* 268 * Class: sun_nio_ch_Net 269 * Method: pollnvalValue 270 * Signature: ()S 271 */ 272 JNIEXPORT jshort JNICALL Java_sun_nio_ch_Net_pollnvalValue 273 (JNIEnv *, jclass); 274 275 /* 276 * Class: sun_nio_ch_Net 277 * Method: pollconnValue 278 * Signature: ()S 279 */ 280 JNIEXPORT jshort JNICALL Java_sun_nio_ch_Net_pollconnValue 281 (JNIEnv *, jclass); 282 283 #ifdef __cplusplus 284 } 285 #endif 286 #endif 287