Ticket #3014: twisted_application_internet.py.patch

File twisted_application_internet.py.patch, 1.7 KB (added by victorvieux, 6 years ago)

TCP6Server & TCP6Client

  • twisted/application/internet.py

    old new  
    1515They are as follows:: 
    1616 
    1717  TCPServer, TCPClient, 
     18  TCP6Server, TCP6Client, 
    1819  UNIXServer, UNIXClient, 
    1920  SSLServer, SSLClient, 
    2021  UDPServer, UDPClient, 
     
    5859    @type volatile: C{list} 
    5960 
    6061    @ivar method: the type of method to call on the reactor, one of B{TCP}, 
    61         B{UDP}, B{SSL} or B{UNIX}. 
     62        B{TCP6}, B{UDP}, B{SSL} or B{UNIX}. 
    6263    @type method: C{str} 
    6364 
    6465    @ivar reactor: the current running reactor. 
    65     @type reactor: a provider of C{IReactorTCP}, C{IReactorUDP}, 
     66    @type reactor: a provider of C{IReactorTCP}, C{IReactorTCP6}, C{IReactorUDP}, 
    6667        C{IReactorSSL} or C{IReactorUnix}. 
    6768 
    6869    @ivar _port: instance of port set when the service is started. 
     
    125126    @type volatile: C{list} 
    126127 
    127128    @ivar method: the type of method to call on the reactor, one of B{TCP}, 
    128         B{UDP}, B{SSL} or B{UNIX}. 
     129        B {TCP6}, B{UDP}, B{SSL} or B{UNIX}. 
    129130    @type method: C{str} 
    130131 
    131132    @ivar reactor: the current running reactor. 
    132     @type reactor: a provider of C{IReactorTCP}, C{IReactorUDP}, 
     133    @type reactor: a provider of C{IReactorTCP}, C{IReactorTCP6}, C{IReactorUDP}, 
    133134        C{IReactorSSL} or C{IReactorUnix}. 
    134135 
    135136    @ivar _connection: instance of connection set when the service is started. 
     
    194195} 
    195196 
    196197import new 
    197 for tran in 'Generic TCP UNIX SSL UDP UNIXDatagram Multicast'.split(): 
     198for tran in 'Generic TCP TCP6 UNIX SSL UDP UNIXDatagram Multicast'.split(): 
    198199    for side in 'Server Client'.split(): 
    199200        if tran == "Multicast" and side == "Client": 
    200201            continue