An attempt at working the TCP sockets in python.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Greg Gauthier 2e9fae3d4c removed main from the server module. forgot it was there 2 years ago
.gitignore initial commit 2 years ago
README.md initial commit 2 years ago
echo_client.py initial commit 2 years ago
echo_server.py removed main from the server module. forgot it was there 2 years ago
socket_server_demo.py initial commit 2 years ago

README.md

sockets-example

This project is just me trying to remediate myself on more advanced python topics. There are a few variant iterations of this example floating around the internet. But my example is unique for three reasons:

  1. I bundle the server and client into proper classes. Most people just give you the "more pythonic" flat method technique. I think this is questionable.
  2. I provide a runner that handles everything. Starts the server, starts the client, passes messages between them, and logs it all to the console.
  3. I use multiprocessing to be able to start the server and run the client in the same demo script.