socket.recvfrom() & sendto()

Ron Johnson ron.l.johnson at
Wed May 9 00:57:19 EDT 2001

Courageous wrote:

>>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.

Ahhh.  So many details...

 Ron Johnson, Jr.        Home: ron.l.johnson at
 Jefferson, LA  USA
 "Is Python better or worse than Perl?"
  "Perl is worse than Python because people wanted it 
   worse." -Larry Wall, 10/14/1998

More information about the Python-list mailing list