Stopping a socket.accept() method
me at privacy.net
Sun Aug 15 20:00:12 CEST 2004
I am writing a network game where the server runs in a console window.
The person who has opened the server shall be able to stop the process of
accepting new clients. By now, I am handling that like this:
bla = socket.accept()
So the user can Ctrl+C and no more clients will be accepted.
Unfortunately, this doesn't work in Windows. So how can I give the user
the ability to quit the loop interactively? Any ideas?
please send any mail to botedesschattens(at)web(dot)de
More information about the Python-list