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

Print this page

        

@@ -35,11 +35,10 @@
 #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

@@ -471,11 +470,11 @@
     } else {
         rv = NET_WinBind(fd, (struct sockaddr *)&him, len, exclBind);
     }
 
     if (rv == -1) {
-        NET_ThrowCurrent(env, "JVM_Bind");
+        NET_ThrowCurrent(env, "NET_Bind");
         return;
     }
 
     /* set the address */
     (*env)->SetObjectField(env, this, psi_addressID, iaObj);

@@ -1160,14 +1159,10 @@
             return;
         }
 
     }
     n = send(fd, (char *)&data, 1, MSG_OOB);
-    if (n == JVM_IO_ERR) {
+    if (n == -1) {
         NET_ThrowCurrent(env, "send");
         return;
     }
-    if (n == JVM_IO_INTR) {
-        JNU_ThrowByName(env, "java/io/InterruptedIOException", 0);
-        return;
-    }
 }