Another Socket in Python

Donn Cave donn at
Sat Aug 17 18:11:10 CEST 2002

Quoth "Juza" <r0bbie at>:
| It's the same old problem in my code:
| i need a script that every second after the server is in LISTEM print on the
| screen * until a client is logged in.
| I have try with the module select but i'm not able to do it.
| Any hint?

Well, that's right - select on the socket just prior to accept(),
with a timeout of 1 second.  If you try that, and it doesn't work,
then post the example program and say what happens.  The example
you posted doesn't use select at all, so it's hard to guess what
was unsatisfactory about your select experience.

	Donn Cave, donn at

More information about the Python-list mailing list