[Twisted-Python] Re: Twisted for Novices [Was: Advice sought on application evolution]

Don Dwiggins ddwiggins at advpubtech.com
Thu Mar 27 12:39:26 EDT 2008

Justin Warren wrote:
> Definitely, particularly when it's something that comes up a lot. The
> canonical echo server/client example is ok, but it's a toy problem, not
> a real world thing. It might be nice to have a real world example of
> something (simple!) most people are likely to want to do, and how
> Twisted makes it easy/great.

Just a sudden synaptic spark: how about a time server that periodically 
connects to several user-specified time hosts, and logs the average and 
standard deviation of their values.  Not too generally useful, but 
real-world and exploits asynchrony well.

This idea was inspired by a nice little Windows time server called 
AboutTime that logs entries like this:

> Connecting to NIST using SNTP.
> Resolved address for NIST (
> Received time (ping 62 ms), error 2 ms.
> New time: Thursday, March 27, 2008 09:37:34.


Don Dwiggins
Advanced Publishing Technology

More information about the Twisted-Python mailing list