wiki:ProtocolPEP

Abstract

Define the protocol and transport interfaces.

Rationale

  • Separation simplifies unit testing
  • Allows re-use of protocols on different transports (different kinds and different providers)
  • Reduces duplication
    • SSL
    • Line handling

Protocol API

makeConnection

dataReceived

connectionLost

Transport API

write

writeSequence

loseConnection

Reference Implementation

Twisted

asyncore

References

Last modified 5 years ago Last modified on 09/15/2009 10:01:24 AM