@@ -197,8 +197,10 @@ SOCKET waitforclient(SOCKET server, long secs, long usecs)
|
||||
struct pollfd pfd;
|
||||
|
||||
pfd.fd = server;
|
||||
pfd.events = POLLIN;
|
||||
pfd.revents = 0;
|
||||
|
||||
timeout = (secs * 1000000 + usecs / 1000);
|
||||
timeout = (secs * 1000 + usecs / 1000);
|
||||
|
||||
if (poll(&pfd, 1, timeout) == -1)
|
||||
return INVALID_SOCKET;
|
||||
|
||||
Reference in New Issue
Block a user