socket.recvfrom() & sendto()
Grant Edwards
grante at visi.com
Wed May 9 10:32:46 EDT 2001
In article <itjbjgo8.fsf at pobox.com>, Jonathan Feinberg wrote:
>Ron Johnson <ron.l.johnson at home.com> writes:
>
>> Since the server can send messages to the client at random and
>> irregular interevals, how can the client accept input from the
>> user at the same time that it is "stalled" at a select() ?
>
>It is never "stalled" at a select(); asyncore uses non-blocking
>sockets. select() returns immediately with lists of those sockets
>which are ready to write and those sockets which are ready to read.
So it's in a busy-wait loop burning CPU time when there's
nothing to do? That's just plain evil...
--
Grant Edwards grante Yow! I'll eat ANYTHING
at that's BRIGHT BLUE!!
visi.com
More information about the Python-list
mailing list