ALARM on windows?
Oleg Broytmann
phd at phd.pp.ru
Mon Jan 15 06:25:36 EST 2001
On Mon, 15 Jan 2001, Kalista Christophe wrote:
> 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.
Use timeoutsocket from http://www.timo-tasi.org/python/
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list