}
if (!addrlist && nfds == 0)
+ {
+#ifdef _WIN32
+ errno = WSAEHOSTDOWN;
+#else
+ errno = EHOSTDOWN;
+#endif // _WIN32
break;
+ }
/*
* See if we can connect to any of the addresses so far...
remaining -= 250;
}
+ if (remaining <= 0)
+ errno = ETIMEDOUT;
+
while (nfds > 0)
{
nfds --;