Use poll with Windows socket

Biswapriyo Nath nathbappai@gmail.com
Wed Aug 7 21:09:00 GMT 2019


I've tried to use poll() with a Windows socket (from WSASocket) and a
cygwin side file descriptor (fd). But it is only signaled for fd only.

At first, I have seen that fhandler_socket_wsock::set_socket_handle() casts
SOCKET to int. So, is it possible to use poll() with the SOCKET type? Or Is
there any magic to convert Windows socket to cygwin fd and vice-versa?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list