Bidirectional Networking

Tobias Andersson tangens0-NOSPAM- at -NOSPAM-gmail.com
Fri Dec 12 02:24:16 EST 2008


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



More information about the Python-list mailing list