Hi,
I have a game server running a twisted.internet.reactor already, but am
new to nevow.
I'd like to be able to add an HTTP server for debugging and monitoring.
What is this simplest way I could incorporate this? Eg:
#----------------------------
from nevow import loaders, rend
from twisted.internet import reactor
class HttpServer(rend.Page):
addSlash = True
docFactory = loaders.xmlfile('testPage.html')
reactor.listenTCP(8080, HttpServer())
reactor.run()
#----------------------------
When I try this, I get errors since I have not overridden all the
protocol functions (like doStart, and buildProtocol). I am a little
confused by this since the HttpServer inherits from rend.Page, not
twisted.protocol
Any advice gratefully recieved.
Simon
_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web