Emanuele D'Arrigo skrev:
[...] What if the server
wanted to notify the client of something of interest, i.e. new data
that the client should take into consideration and potentially
process?
If the protocol is relatively simple perhaps you can implement
something similar to IMAP's "IDLE":
http://www.faqs.org/ftp/rfc/rfc2177.txt
Basically the client (when having nothing important to do)
sends the "idle" command and then listens for messages from the
server until "idle" is canceled.
But looking into "circuits" as suggested by James seems like a
good idea also.
HTH /TA
--
http://mail.python.org/mailman/listinfo/python-list