Lines Matching refs:this

7  * published by the Free Software Foundation.  Oracle designates this
9 * by Oracle in the LICENSE file that accompanied this code.
15 * accompanied this code).
18 * 2 along with this work; if not, write to the Free Software Foundation,
127 static int getFD(JNIEnv *env, jobject this) {
128 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
136 static int getFD1(JNIEnv *env, jobject this) {
137 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fd1ID);
178 * First time we are called we must determine which OS this is and also
195 * Step 1: Determine which OS this is.
221 * this machine. This is necesary because we need to check if the
301 * Return JNI_TRUE if this Windows edition supports ICMP Port Unreachable
328 static jboolean purgeOutstandingICMP(JNIEnv *env, jobject this, jint fd)
338 * A no-op if this OS doesn't support it.
423 Java_java_net_TwoStacksPlainDatagramSocketImpl_bind0(JNIEnv *env, jobject this,
426 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
427 jobject fd1Obj = (*env)->GetObjectField(env, this, pdsi_fd1ID);
474 (*env)->SetObjectField(env, this, pdsi_fdID, NULL);
484 (*env)->SetObjectField(env, this, pdsi_fd1ID, NULL);
515 (*env)->SetIntField(env, this, pdsi_localPortID, port);
526 Java_java_net_TwoStacksPlainDatagramSocketImpl_connect0(JNIEnv *env, jobject this,
529 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
530 jobject fd1Obj = (*env)->GetObjectField(env, this, pdsi_fd1ID);
570 * as connected sockets. The solution is to only enable this feature
595 Java_java_net_TwoStacksPlainDatagramSocketImpl_disconnect0(JNIEnv *env, jobject this, jint family) {
603 fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
606 fdObj = (*env)->GetObjectField(env, this, pdsi_fd1ID);
636 Java_java_net_TwoStacksPlainDatagramSocketImpl_send(JNIEnv *env, jobject this,
667 connected = (*env)->GetBooleanField(env, this, pdsi_connected);
676 fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
683 fdObj = (*env)->GetObjectField(env, this, pdsi_fd1ID);
696 addrp = 0; /* arg to JVM_Sendto () null in this case */
708 * on the same machine then this will fail silently. Thus we
709 * catch this situation here so that we can throw an exception
710 * when this arises.
715 if (!w2k_or_later) { /* avoid this check on Win 2K or better. Does not work with IPv6.
771 * Only call this if sure that there is data on both sockets.
773 static int checkLastFD (JNIEnv *env, jobject this, int fd, int fd1) {
774 int nextfd, lastfd = (*env)->GetIntField(env, this, pdsi_lastfdID);
777 (*env)->SetIntField(env, this, pdsi_lastfdID, fd);
785 (*env)->SetIntField(env, this, pdsi_lastfdID, nextfd);
796 Java_java_net_TwoStacksPlainDatagramSocketImpl_peek(JNIEnv *env, jobject this,
799 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
800 jint timeout = (*env)->GetIntField(env, this, pdsi_timeoutID);
866 * An icmp port unreachable - we must receive this as Windows
867 * does not reset the state of the socket until this has been
870 purgeOutstandingICMP(env, this, fd);
872 connected = (*env)->GetBooleanField(env, this, pdsi_connected);
917 Java_java_net_TwoStacksPlainDatagramSocketImpl_peekData(JNIEnv *env, jobject this,
922 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
923 jobject fd1Obj = (*env)->GetObjectField(env, this, pdsi_fd1ID);
924 jint timeout = (*env)->GetIntField(env, this, pdsi_timeoutID);
1026 * for this call to peek() */
1043 fduse = checkLastFD (env, this, fd, fd1);
1078 * An icmp port unreachable - we must receive this as Windows
1079 * does not reset the state of the socket until this has been
1082 purgeOutstandingICMP(env, this, fduse);
1084 connected = (*env)->GetBooleanField(env, this, pdsi_connected);
1147 * Check if there is an InetAddress already associated with this
1174 (*env)->SetIntField(env, this, pdsi_fduseID, fduse);
1188 Java_java_net_TwoStacksPlainDatagramSocketImpl_receive0(JNIEnv *env, jobject this,
1193 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
1194 jobject fd1Obj = (*env)->GetObjectField(env, this, pdsi_fd1ID);
1195 jint timeout = (*env)->GetIntField(env, this, pdsi_timeoutID);
1229 fduse = (*env)->GetIntField(env, this, pdsi_fduseID);
1235 fduse = checkLastFD (env, this, fd, fd1);
1253 /* ipv6 supported: and this socket bound to an IPV6 only address */
1256 /* ipv6 supported: and this socket bound to an IPV4 only address */
1300 * If this Windows edition supports ICMP port unreachable and if we
1305 * t2 < t1. In this case we must discard the ICMP packets and then
1308 connected = (*env)->GetBooleanField(env, this, pdsi_connected);
1350 purgeOutstandingICMP(env, this, fduse);
1441 * Check if there is an InetAddress already associated with this
1479 jobject this) {
1480 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
1481 jobject fd1Obj = (*env)->GetObjectField(env, this, pdsi_fd1ID);
1507 * as connected sockets. The solution is to only enable this feature
1525 (*env)->SetObjectField(env, this, pdsi_fd1ID, NULL);
1536 jobject this) {
1540 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
1541 jobject fd1Obj = (*env)->GetObjectField(env, this, pdsi_fd1ID);
1593 * Check that there is at least one address bound to this
1664 static void setMulticastInterface(JNIEnv *env, jobject this, int fd, int fd1,
1673 * On IPv6 system get the NetworkInterface that this IP
1744 /* If there are any IPv4 addresses on this interface then
1784 Java_java_net_TwoStacksPlainDatagramSocketImpl_socketNativeSetOption(JNIEnv *env,jobject this,
1795 fd = getFD(env, this);
1798 fd1 = getFD1(env, this);
1808 setMulticastInterface(env, this, fd, fd1, opt, value);
1919 jobject getMulticastInterface(JNIEnv *env, jobject this, int fd, int fd1, jint opt) {
1974 * this address and return it
1997 * with this address.
2132 Java_java_net_TwoStacksPlainDatagramSocketImpl_socketGetOption(JNIEnv *env, jobject this,
2142 fd = getFD(env, this);
2144 fd1 = getFD1(env, this);
2158 return getMulticastInterface(env, this, fd, fd1, opt);
2238 Java_java_net_TwoStacksPlainDatagramSocketImpl_setTimeToLive(JNIEnv *env, jobject this,
2241 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
2242 jobject fd1Obj = (*env)->GetObjectField(env, this, pdsi_fd1ID);
2281 Java_java_net_TwoStacksPlainDatagramSocketImpl_setTTL(JNIEnv *env, jobject this,
2283 Java_java_net_TwoStacksPlainDatagramSocketImpl_setTimeToLive(env, this,
2293 Java_java_net_TwoStacksPlainDatagramSocketImpl_getTimeToLive(JNIEnv *env, jobject this) {
2294 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
2295 jobject fd1Obj = (*env)->GetObjectField(env, this, pdsi_fd1ID);
2337 Java_java_net_TwoStacksPlainDatagramSocketImpl_getTTL(JNIEnv *env, jobject this) {
2338 int result = Java_java_net_TwoStacksPlainDatagramSocketImpl_getTimeToLive(env, this);
2346 static void mcast_join_leave(JNIEnv *env, jobject this,
2350 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID);
2351 jobject fd1Obj = (*env)->GetObjectField(env, this, pdsi_fd1ID);
2387 * eventually this check should be done by the security manager
2481 Java_java_net_TwoStacksPlainDatagramSocketImpl_join(JNIEnv *env, jobject this,
2484 mcast_join_leave (env, this, iaObj, niObj, JNI_TRUE);
2493 Java_java_net_TwoStacksPlainDatagramSocketImpl_leave(JNIEnv *env, jobject this,
2496 mcast_join_leave (env, this, iaObj, niObj, JNI_FALSE);