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.

def handle(self):
    # self.request is the client connection
    data = self.request.recv(1024)  # clip input at 1Kb
    reply = pipe_command(my_unix_command, data)
    if reply is not None:
        self.request.send(reply)
    self.request.close()
Name:
Mail: (not shown)

Please type this: