annotate pythonServer-legacy.py @ 1533:317faa29ab11

Feature Feature #1270: Outside reference object added. Some small bugs and GUI to solve.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Thu, 23 Jul 2015 09:37:27 +0100
parents 766bff1a8f73
children
rev   line source
nickjillings@1528 1 import SimpleHTTPServer
nickjillings@1528 2 import SocketServer
nickjillings@1528 3
nickjillings@1528 4 PORT = 8080
nickjillings@1528 5
nickjillings@1528 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1528 7
nickjillings@1528 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1528 9
nickjillings@1528 10 print "serving at port", PORT
nickjillings@1528 11 httpd.serve_forever()