> I don't understand this. If you're ok with calling fileno() under Linux, why not under Windows?
I propose to add set_wakeup_socket() for all platforms. This function doesn't really call the fileno() method, it gets the socket file descriptor/socket handle from the C structure.
I explained why I prefer to use an object rather than a number for set_wakeup_socket(). For example, it makes a clear separation between set_wakeup_fd(int) and set_wakeup_socket(socket).
Would you prefer to use the file descriptor/socket handler for set_wakeup_socket()? |