annotate pythonServer-legacy.py @ 1079:24eeac8994bf

Add DMRN Proposal
author DaveM <DaveM@localhost>
date Mon, 07 Dec 2015 11:21:01 +0000
parents f452455b5977
children
rev   line source
nicholas@813 1 import SimpleHTTPServer
nicholas@813 2 import SocketServer
nicholas@813 3
nicholas@813 4 PORT = 8080
nicholas@813 5
nicholas@813 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nicholas@813 7
nicholas@813 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nicholas@813 9
nicholas@813 10 print "serving at port", PORT
nicholas@813 11 httpd.serve_forever()