Comments in win32sck.c led me to GetFileType(), which might be all that's needed, at least to find out whether a file handle might be a socket.
As the code is Win32-specific, and Windows 9x isn't supported anymore, this call could maybe used instead of fstat.
In reply to Re^3: threads + sockets stalling question
by Corion
in thread threads + sockets stalling question
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |