[python-win32] win32event.WaitForMultipleObjects and sockets
Tim Roberts
timr at probo.com
Thu May 26 19:17:45 CEST 2011
David Markey wrote:
> Hi All,
>
> Sorry for the n00b question...
>
> With win32event.WaitForMultipleObjects, I dont seem to be able to give
> it a plain socket object. How can I create a PyHANDLE from a socket?
Sockets and file handles are not among the list of objects that
WaitForMultipleObjects accepts.
http://msdn.microsoft.com/en-us/library/ms687025.aspx
Are you trying to do asynchronous socket I/O? You should probably be
using the built-in Python mechanism for that, in the "asyncore" module.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list