Changes between Version 250 and Version 251 of WikiStart


Ignore:
Timestamp:
08/05/2014 01:54:00 PM (3 months ago)
Author:
glyph
Comment:

and pubsub example

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v250 v251  
    169169{{{ 
    170170#!python 
    171 from twisted.internet import reactor, protocol 
     171from twisted.internet import reactor, protocol, endpoints 
    172172from twisted.protocols import basic 
    173173 
     
    193193        return PubProtocol(self) 
    194194 
    195 reactor.listenTCP(1025, PubFactory()) 
     195endpoints.serverFromString(reactor, "tcp:1025").listen(PubFactory()) 
    196196reactor.run() 
    197197}}}