There is no simple API on Linux, which is equivalent to WaitForMultipleObjects() .
This QnA contains the answer to the first part and perhaps the best explanation.
For WSAEnumNetworkEvents() on linux, use poll() or select() according to your requirements. Another libevent application libevent also be useful.
Link:
source share