- */
- int ret = 0;
- int wsagle = 0;
- const int zero = 0;
-
- do
- {
- if(wsagle == WSAEINPROGRESS)
- Sleep(1); /* use windows sleep */
-
- WSASetLastError (0);
- ret = ioctl (fd, FIONBIO, &zero);
- wsagle = WSAGetLastError();
- }
+ */
+ int ret = 0;
+ int wsagle = 0;
+ const int zero = 0;
+
+ do
+ {
+ if(wsagle == WSAEINPROGRESS)
+ Sleep(1); /* use windows sleep */
+
+ WSASetLastError (0);
+ ret = ioctl (fd, FIONBIO, &zero);
+ wsagle = WSAGetLastError ();
+ }