organise files, use same port number in examples

This commit is contained in:
2015-09-06 20:35:09 +01:00
parent 1151d6893e
commit 97613337c6
7 changed files with 10 additions and 21 deletions

View File

@@ -28,7 +28,7 @@ class MyTCPHandler(SocketServer.BaseRequestHandler):
# self.wfile.write(self.data.upper())
if __name__ == "__main__":
HOST, PORT = "localhost", 9999
HOST, PORT = "localhost", 10000
# Create the server, binding to localhost on port 9999
server = SocketServer.TCPServer((HOST, PORT), MyTCPHandler)