...
// Associate event types FD_ACCEPT and FD_CLOSE
// with the listening socket and NewEvent
WSAEventSelect(ListenSocket, NewEvent, FD_ACCEPT|FD_CLOSE);
...
Index = WSAWaitForMultipleEvents(1, &EventArray[i], TRUE, 1000, FALSE);
...
WSAEnumNetworkEvents(SocketArray[i],EventArray[i],&NetworkEvents);
...
But I never get a FD_CLOSE-event for the listener socket.
Docu states that closesocket doesn't cause a FD_CLOSE event.
How do I trigger a FD_CLOSE event locally?
(If it's not possible to trigger a FD_CLOSE-event this value should be
removed from WSAEventSelect-call!)
Regards,
Michael B.