A simple TCP socket server and client built with Python's socket module.
testserver/
├── server.py # TCP server
├── client.py # TCP client
├── .github/
│ └── workflows/
│ └── ci.yml # GitHub Actions CI
├── LICENSE
└── README.md
- Python 3.7+
No external dependencies required.
- Start the server:
python server.py- In a separate terminal, run the client:
python client.py- The server listens on
localhost:12345, accepts a connection, receives a message, and responds with"got it". - The client connects to the server, sends
"hi there", and prints the response.
This project is licensed under the MIT License. See LICENSE for details.