Anonymous committed 2c49b1f

updated echo to use csp.twisted.port instead of csp.port

  • Participants
  • Parent commits f360237
  • Branches 0.8

Comments (0)

Files changed (1)


 from twisted.internet import reactor, protocol
-from csp.port import CometPort
+from csp.twisted.port import CometPort
 class Echo(protocol.Protocol):
     def dataReceived(self, data):
     protocol = Echo
 if __name__ == "__main__":
-    print "echo listening on CSP@8050"
-    reactor.listenWith(CometPort, port=8050, factory=EchoFactory())
+    print "echo listening on CSP@8000"
+    reactor.listenWith(CometPort, port=8000, factory=EchoFactory())