def got_root(rkv): kv = RemoteKeyValue(rkv) factory = makeSite(kv) print 'listening' server = endpoints.serverFromString(reactor, "tcp:8000") server.listen(factory)
def got_root(rkv): kv = RemoteKeyValue(rkv) factory = makeSite(kv) print "listening" reactor.listenTCP(8000, factory)