Re: [python-win32] win32event.WaitForMultipleObjects and sockets

2011-05-26 Thread Tim Roberts
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

Re: [python-win32] win32event.WaitForMultipleObjects and sockets

2011-05-26 Thread Amaury Forgeot d'Arc
2011/5/26 David Markey : > I cant seem to find WSACreateEvent anywhere, is it exposed? > There is win32event.CreateEvent but it takes 4 arguments. > > I can find win32file.WSAEventSelect alright. According to msdn: """The WSACreateEvent function creates a manual-reset event object with an initial

Re: [python-win32] win32event.WaitForMultipleObjects and sockets

2011-05-26 Thread David Markey
I cant seem to find WSACreateEvent anywhere, is it exposed? There is win32event.CreateEvent but it takes 4 arguments. I can find win32file.WSAEventSelect alright. On 26 May 2011 10:05, Amaury Forgeot d'Arc wrote: > 2011/5/26 David Markey : > > Hi All, > > Sorry for the n00b question... > > Wi

Re: [python-win32] win32event.WaitForMultipleObjects and sockets

2011-05-26 Thread Amaury Forgeot d'Arc
2011/5/26 David Markey : > 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? It won't work like this, because a socket has several things you can wait for (availab

[python-win32] win32event.WaitForMultipleObjects and sockets

2011-05-26 Thread David Markey
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? In [26]: int = WaitForMultipleObjects([so],False,1) ---