SocketServer

Bonus: simple python socket client

Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.

class SimpleServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
    # Ctrl-C will cleanly kill all spawned threads
    daemon_threads = True
    # much faster rebinding
    allow_reuse_address = True

    def __init__(self, server_address, RequestHandlerClass):
        SocketServer.TCPServer.__init__(self, server_address, RequestHandlerClass)
Name:
Mail: (not shown)

Please type this: