I’ve been playing around with protocols a bit more recently, and wanted a simple Python app which I could use to generate network traffic. So, I’ve made a very simple guest book using Python. Code can be found here:
https://github.com/VicHarkness/pyguestbook
The server.py sits and waits for incoming connections from client.py. A person can choose to read or sign the guest book, which is stored in a local text file.
I’ve made a very basic protocol for use by the app. Messages being transmitted to the server consist of a message type (1=read, 2=write), followed by the nickname of the user. It’s UTF-8 encoded for nicer transmission.
[…] Python Guest Book […]
[…] Python Guest Book […]