I'm writing a small program that needs to wait on socket I/O and on process I/O using pipes.
To detect pipe I/O I must use WaitForMultipleObjects and for socket I/O I must use select.
These waits are incompatible. I can't even interrupt one if there is data to forward bewteen them.
Is there a way to use select or WaitForMultipleObjects to wait for all types of event without needing to poll ?
Do I have to go for threads where I could avoid it in unix ?