src/windows/native/java/net/TwoStacksPlainSocketImpl.c

Print this page

        

*** 35,45 **** #include "java_net_TwoStacksPlainSocketImpl.h" #include "java_net_InetAddress.h" #include "java_io_FileDescriptor.h" #include "java_lang_Integer.h" - #include "jvm.h" #include "net_util.h" #include "jni_util.h" /************************************************************************ * TwoStacksPlainSocketImpl --- 35,44 ----
*** 471,481 **** } else { rv = NET_WinBind(fd, (struct sockaddr *)&him, len, exclBind); } if (rv == -1) { ! NET_ThrowCurrent(env, "JVM_Bind"); return; } /* set the address */ (*env)->SetObjectField(env, this, psi_addressID, iaObj); --- 470,480 ---- } else { rv = NET_WinBind(fd, (struct sockaddr *)&him, len, exclBind); } if (rv == -1) { ! NET_ThrowCurrent(env, "NET_Bind"); return; } /* set the address */ (*env)->SetObjectField(env, this, psi_addressID, iaObj);
*** 1160,1173 **** return; } } n = send(fd, (char *)&data, 1, MSG_OOB); ! if (n == JVM_IO_ERR) { NET_ThrowCurrent(env, "send"); return; } - if (n == JVM_IO_INTR) { - JNU_ThrowByName(env, "java/io/InterruptedIOException", 0); - return; - } } --- 1159,1168 ---- return; } } n = send(fd, (char *)&data, 1, MSG_OOB); ! if (n == -1) { NET_ThrowCurrent(env, "send"); return; } }