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

Print this page

        

@@ -96,11 +96,11 @@
     }
 
     rv = NET_WinBind(fd, (struct sockaddr *)&sa, sa_len, exclBind);
 
     if (rv == SOCKET_ERROR)
-        NET_ThrowNew(env, WSAGetLastError(), "JVM_Bind");
+        NET_ThrowNew(env, WSAGetLastError(), "NET_Bind");
 }
 
 /*
  * Class:     java_net_DualStackPlainSocketImpl
  * Method:    connect0

@@ -449,14 +449,12 @@
   (JNIEnv *env, jclass clazz, jint fd, jint data) {
     jint n;
     unsigned char d = (unsigned char) data & 0xff;
 
     n = send(fd, (char *)&data, 1, MSG_OOB);
-    if (n == JVM_IO_ERR) {
+    if (n == SOCKET_ERROR) {
         NET_ThrowNew(env, WSAGetLastError(), "send");
-    } else if (n == JVM_IO_INTR) {
-        JNU_ThrowByName(env, "java/io/InterruptedIOException", 0);
     }
 }
 
 /*
  * Class:     java_net_DualStackPlainSocketImpl