Skip to content

rezadorost/simple-socket-programming-on-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages