I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 6635425b authored by aum's avatar aum Committed by zzz
Browse files

example_httpd.py - demo of I2P-ised Python server classes

parent 5d4bdc56
No related branches found
No related tags found
No related merge requests found
#! /usr/bin/env python
myServerAddress = "mytestxxx.i2p"
from i2p import BaseHTTPServer, CGIHTTPServer
class MyServer(BaseHTTPServer.HTTPServer):
pass
class MyRequestHandler(CGIHTTPServer.CGIHTTPRequestHandler):
pass
def runServer():
httpd = MyServer(myServerAddress, MyRequestHandler)
print "MyServer: local address = %s" % myServerAddress
print "MyServer: dest = %s" % httpd.socket.dest
httpd.serve_forever()
if __name__ == '__main__':
runServer()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment