Some notes for programming in Twisted


A twisted server consistes of the following

  • Protocol
    • Lots of Predefined already
    • Look in twisted.protocols
  • Factory
    • A Wrapper stores a protocol
    • A factory can be persisted within applications
  • reactor
    • A class that actually listens on a network
    • Uses the previously defined protocol
    • runs in a single thread
    • No Blocking