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.

Python 2.6 and 3.0 introduced a lot of new modules. Here I'll be covering one of them, SocketServer, which provides a dead easy way to build custom servers. We'll be implementing a port-to-pipe adapter. Anything that comes in to a network port will be passed through the standard input pipe to an application. The application's output will be collected and routed back through the network port. What's good will this example be? Well, it is a recent saw that all good webapps are clones of a single unix command, so this port-to-pipe adapter is obviously worth millions. Righto.

Name:
Mail: (not shown)

Please type this: