Bidirectional Networking

Tobias Andersson tangens0-NOSPAM- at
Fri Dec 12 08:24:16 CET 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":

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.


More information about the Python-list mailing list