"Kai Blin" kai.blin@gmail.com wrote:
- HANDLE hEvent = INVALID_HANDLE_VALUE;
- WSAEVENT event_array[1];
Is that change only to avoid passing &hEvent to WSAWaitForMultipleEvents?
On Monday 28 April 2008 13:39:38 Dmitry Timoshkov wrote:
"Kai Blin" kai.blin@gmail.com wrote:
- HANDLE hEvent = INVALID_HANDLE_VALUE;
- WSAEVENT event_array[1];
Is that change only to avoid passing &hEvent to WSAWaitForMultipleEvents?
Nope. WSAWaitForMultipleEvents expects an array of WSAEVENTs. So this seemed like the cleaner approach to do this.
Cheers, Kai
"Kai Blin" kai.blin@gmail.com wrote:
- HANDLE hEvent = INVALID_HANDLE_VALUE;
- WSAEVENT event_array[1];
Is that change only to avoid passing &hEvent to WSAWaitForMultipleEvents?
Nope. WSAWaitForMultipleEvents expects an array of WSAEVENTs. So this seemed like the cleaner approach to do this.
That's exactly what I pointed out above. In C both ways is an equivalent.