Changes between and of Version 1Version 2Ticket #5015


Ignore:
Timestamp:
04/03/2011 10:31:22 AM (3 years ago)
Author:
exarkun
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5015 – Description

    v1 v2  
    2020}}} 
    2121 
     22These details might even all be wrapped up inside an even simpler helper API: 
     23 
     24{{{ 
     25#!python 
     26    class SomeProtocol(Protocol): 
     27        def dataReceived(self, bytes): 
     28            if somecondition(): 
     29                self.transport = startTLS(ctx, self.transport, self) 
     30}}} 
     31 
    2232The details might differ, but importantly an API like this can be implemented entirely outside the reactor, except for the new `switchProtocol` method (proposed already in #3204). 
    2333