ALARM on windows?

Kalista Christophe ckalista at realproject.be
Mon Jan 15 05:54:38 EST 2001


I'm having trouble handling SIGALRM under windows!

I'd like to do the following : A python script listens to port 6664(for
example). When it gets a connection, it then sets an alarm handler and then
tries to read from the socket. If it does not get data within 10 seconds, it
then times out, at which point the alarm handler throws an axception and
aborts the socket read.

The problem is that I don't know how to handle signals under WINDOWS.

Any ideas?

Thanks in advance.
Kalis.






More information about the Python-list mailing list