socket.recvfrom() & sendto()

Courageous jkraska1 at san.rr.com
Wed May 9 00:45:25 EDT 2001


>Not to pick a nit, but doesn't execution stall at select() if 
>there is no data coming in to the server.  For example: a small 
>chat server when no one happens to be chatting.

Asyncronous event-driven programs of this sort typically solve
this by initiating a time thread which then writes a wakeup connect
through one of the file descriptors which select is listening on;
the file descriptor is usually set up early for just this purpose.



C//




More information about the Python-list mailing list