This is example code for TWISTED from O'REILLY.