socket.recvfrom() & sendto()
Jonathan Feinberg
jdf at pobox.com
Wed May 9 00:21:43 EDT 2001
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.
--
Jonathan Feinberg jdf at pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf
More information about the Python-list
mailing list