#96 add win32File.WSAEnumNetworkEvents

closed-accepted
nobody
None
5
2010-08-27
2010-06-29
No

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.

Discussion

  • Ziga Seilnacht

    Ziga Seilnacht - 2010-06-29

    patch that adds WSAEnumNetworkEvents function to the win32file module

     
  • Mark Hammond

    Mark Hammond - 2010-08-27
    • status: open --> closed-accepted
     
  • Mark Hammond

    Mark Hammond - 2010-08-27

    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

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks