Bonus: simple python socket client
Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.
Second, we override the default TCP handler with our own class. The first line collects a chunk of data, limited to a kilobyte. This data is passed through
pipe_command(). If everything completes successfully and there is data to report, it is send back. Finally, the connection is closed.