annotate pythonServer.py @ 1984:af45d4eda886

Paper: expanded introduction and list of options
author Brecht De Man <b.deman@qmul.ac.uk>
date Thu, 23 Apr 2015 20:03:38 +0100
parents 76978d8e93d8
children e08f2b155d8b
rev   line source
nickjillings@1679 1 import SimpleHTTPServer
nickjillings@1679 2 import SocketServer
nickjillings@1679 3
nickjillings@1679 4 PORT = 8080
nickjillings@1679 5
nickjillings@1679 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1679 7
nickjillings@1679 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1679 9
nickjillings@1679 10 print "serving at port", PORT
nickjillings@1679 11 httpd.serve_forever()