view pythonServer-legacy.py @ 1512:a2ba4db3fdb6

Updated the ProjectSpecificationDocument.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Sat, 25 Jul 2015 14:49:54 +0100
parents
children
line wrap: on
line source
import SimpleHTTPServer
import SocketServer

PORT = 8080

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(("", PORT), Handler)

print "serving at port", PORT
httpd.serve_forever()