Alright this one is super hacky so bare with me. This code is almost a direct port from Python’s offical docs. I just added a few coroutine functions just for the fun of it. Anyway if you want to learn more about sockets, read the docs and Doug Hellmann also covers socket programming in Python.
- CHEAT SHEETS