annotate pythonServer-legacy.py @ 1410:c0098cee84f2

Buffers loaded into a pool and picked when needed.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Mon, 07 Dec 2015 18:26:12 +0000
parents 3b9f0bc523d6
children
rev   line source
nickjillings@1404 1 import SimpleHTTPServer
nickjillings@1404 2 import SocketServer
nickjillings@1404 3
nickjillings@1404 4 PORT = 8080
nickjillings@1404 5
nickjillings@1404 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1404 7
nickjillings@1404 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1404 9
nickjillings@1404 10 print "serving at port", PORT
nickjillings@1404 11 httpd.serve_forever()