view pythonServer-legacy.py @ 1955:8cb811c5274c

Added paragraph onto Interfaces for 3rd party interfaces
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 13 Oct 2015 10:29:28 +0100
parents 4988c805ff9e
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()