annotate pythonServer-legacy.py @ 1365:c4156df1dcb5

More instructions. Added comment box sections. Still wip.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 27 Jan 2016 09:49:42 +0000
parents 64541cd9265d
children
rev   line source
nickjillings@1318 1 import SimpleHTTPServer
nickjillings@1318 2 import SocketServer
nickjillings@1318 3
nickjillings@1318 4 PORT = 8080
nickjillings@1318 5
nickjillings@1318 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1318 7
nickjillings@1318 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1318 9
nickjillings@1318 10 print "serving at port", PORT
nickjillings@1318 11 httpd.serve_forever()