diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2015-12-16 15:33:36 +0100 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2015-12-16 15:33:36 +0100 |
commit | c3eeb526ae4457b0e6ba098ec6003ad7105d2299 (patch) | |
tree | 0c5c66edce46faffad8e1d5a47229a72d50ec321 /tests/server | |
parent | 234abd9013a9c469eadf6d6b8c8c92927cfd5edd (diff) |
sockfilt.c: added some debug output to select_ws
Diffstat (limited to 'tests/server')
-rw-r--r-- | tests/server/sockfilt.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index 28e24eedc..cf090cafb 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -857,6 +857,17 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds, } } + for(fds = 0; fds < nfds; fds++) { + if(FD_ISSET(fds, readfds)) + logmsg("select_ws: %d is readable", fds); + + if(FD_ISSET(fds, writefds)) + logmsg("select_ws: %d is writable", fds); + + if(FD_ISSET(fds, exceptfds)) + logmsg("select_ws: %d is excepted", fds); + } + for(idx = 0; idx < wsa; idx++) { WSAEventSelect(data[idx].wsasock, NULL, 0); WSACloseEvent(data[idx].wsaevent); |