view pythonServer-legacy.py @ 1307:5b45f72ad4bd

Starting server side scripts. WIP, stash
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 17 Feb 2016 12:10:55 +0000
parents cc55cc323592
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()