comparison libnnchat.c @ 365:88ac689d11bc

Win32/MinGW specific fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Jun 2011 11:24:25 +0300
parents b465a17ffa47
children b9f0bdad6285
comparison
equal deleted inserted replaced
364:f73354a738b3 365:88ac689d11bc
229 } 229 }
230 th_free(buf); 230 th_free(buf);
231 231
232 /* Wait for SOCKS server to reply */ 232 /* Wait for SOCKS server to reply */
233 for (status = tries = 1; tries <= 20 && status > 0; tries++) { 233 for (status = tries = 1; tries <= 20 && status > 0; tries++) {
234 usleep(500); 234 #ifdef __WIN32
235 Sleep(50);
236 #else
237 usleep(50000);
238 #endif
235 nn_conn_reset(conn); 239 nn_conn_reset(conn);
236 status = nn_conn_pull(conn); 240 status = nn_conn_pull(conn);
237 } 241 }
238 242
239 /* Check results */ 243 /* Check results */