309 * *fdret is (one of) the active fds. If both sockets |
309 * *fdret is (one of) the active fds. If both sockets |
310 * fire at same time, *fd == fd always. |
310 * fire at same time, *fd == fd always. |
311 */ |
311 */ |
312 JNIEXPORT int JNICALL NET_Timeout2(int fd, int fd1, long timeout, int *fdret); |
312 JNIEXPORT int JNICALL NET_Timeout2(int fd, int fd1, long timeout, int *fdret); |
313 |
313 |
314 JNIEXPORT int JNICALL NET_BindV6(struct ipv6bind* b); |
314 JNIEXPORT int JNICALL NET_BindV6(struct ipv6bind* b, jboolean exclBind); |
315 |
315 |
316 #define NET_WAIT_READ 0x01 |
316 #define NET_WAIT_READ 0x01 |
317 #define NET_WAIT_WRITE 0x02 |
317 #define NET_WAIT_WRITE 0x02 |
318 #define NET_WAIT_CONNECT 0x04 |
318 #define NET_WAIT_CONNECT 0x04 |
319 |
319 |
320 extern jint NET_Wait(JNIEnv *env, jint fd, jint flags, jint timeout); |
320 extern jint NET_Wait(JNIEnv *env, jint fd, jint flags, jint timeout); |
321 |
321 |
|
322 JNIEXPORT int JNICALL NET_WinBind(int s, struct sockaddr *him, int len, |
|
323 jboolean exclBind); |
|
324 |
322 /* XP versions of the native routines */ |
325 /* XP versions of the native routines */ |
323 |
326 |
324 JNIEXPORT jobject JNICALL Java_java_net_NetworkInterface_getByName0_XP |
327 JNIEXPORT jobject JNICALL Java_java_net_NetworkInterface_getByName0_XP |
325 (JNIEnv *env, jclass cls, jstring name); |
328 (JNIEnv *env, jclass cls, jstring name); |
326 |
329 |