Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 875 Bytes

File metadata and controls

45 lines (30 loc) · 875 Bytes

TestServer

A simple TCP socket server and client built with Python's socket module.

Project Structure

testserver/
├── server.py          # TCP server
├── client.py          # TCP client
├── .github/
│   └── workflows/
│       └── ci.yml     # GitHub Actions CI
├── LICENSE
└── README.md

Requirements

  • Python 3.7+

No external dependencies required.

Usage

  1. Start the server:
python server.py
  1. In a separate terminal, run the client:
python client.py

How It Works

  • 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.

License

This project is licensed under the MIT License. See LICENSE for details.