Call WSAWaitForMultipleEvents() in a loop until we have checked all events.