Windows NT Service and Sockets
Thomas Heller
theller at python.net
Wed Mar 3 15:30:38 EST 2004
OlafMeding at compuserve.com (Olaf Meding) writes:
> How can I used WaitForMultipleObjects() with sockets? The code (shown
> below) respresents a very simple echo server using sockets. I need
> WaitForMultipleObjects() so I can wait for both a new connection and
> the stop command from the service manager.
>
> Your help is greatly appreciated. Thanks.
Look into win32file.WSAEventSelect, it allows to associate an event
object with FD_XXX network events.
Thomas
More information about the Python-list
mailing list