sockets: client dies...
Donn Cave
donn at u.washington.edu
Thu Jan 25 14:03:21 EST 2001
Quoth Keith Murphy <kpmurphy at my-deja.com>:
...
| if i don't setblocking to 0, then it will get hung up on one client...
| waiting for a message, right? i'm afraid i don't know what select()
| is...
|
| i guess what i'd like is a better way to sit around and listen to n
| hosts, and be able to detect when one has died.
select() is documented, it's in the select module. If you want to
really understand sockets and a lot more, the classic reference is
Stevens, any decent bookstore will have it. If you want a solution
already written in Python, asyncore in the standard distribution
might be worth a look.
Donn Cave, donn at u.washington.edu
More information about the Python-list
mailing list