add win32File.WSAEnumNetworkEvents
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
WSAEventSelect is not very useful without the accompanying WSAEnumNetworkEvents, which reports the exact network events that caused the event associated with a socket to become signaled. This patch adds it.
The added function reports network events as a dict, which deviates slightly from the winapi interface, but is more convenient. The patch includes some tests that show the intended usage of this function.
patch that adds WSAEnumNetworkEvents function to the win32file module
This would also close feature request #1527583:
https://sourceforge.net/tracker/?func=detail&aid=1527583&group_id=78018&atid=551957
Awesome - thanks very much. I had to change a few places in the tests for what seemed to be simple timing issues, but the code itself looks great, so I checked it in with the modified tests - please let me know if you think I screwed anything up.
Checking in CHANGES.txt;
new revision: 1.59; previous revision: 1.58
Checking in win32/src/win32file.i;
new revision: 1.110; previous revision: 1.109
Checking in win32/test/test_win32file.py;
new revision: 1.34; previous revision: 1.33