Can I use the winsock api from python?

2019-07-26 18:56发布

问题:

I wanted to use asynchronous socket operations with python using the Winsock WSAEventSelect function and the like. But there doesn't seem to be a way to call the winsock api functions from python. Am I missing something?

Why aren't they available, even as a module (like http://sourceforge.net/projects/pywin32/ for a lot of windows api functions)? Is there any other reason than "Nobody seemed to need it enough to implement it?"