Socket Programming Project
Overview
This project demonstrates a simple TCP/IP model using socket programming in Python. The model consists of a client and a server that communicate over a network.
Prerequisites
Before you begin, ensure you have met the following requirements:
- Python 3.x installed on your local machine.
- socket
- Git installed on your local machine.
Installation
To set up the project on your local machine, follow these steps:
Clone the repository: git clone https://github.com/vignesh-0512/socket-programming.git
Navigate to the project directory: cd socket-programming
Usage To run this model, you need to open two terminals:
To start TCP/IP model move to tcp folder command: cd tcp Start the client: python client.py
Start the server: python server.py
To work with UDP move to udp folder cd udp
Start server: python server.py Start client: python client.py
Once both the server and client are running, you can enter text in the client terminal. The text will be sent to the server.
Project Structure
client.py: Contains the client-side implementation. server.py: Contains the server-side implementation.
How It Works
- The server listens for incoming connections from clients.
- The client connects to the server and sends text input.
- The server receives the text input and can process or display it.
Contributing
If you want to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (git checkout -b feature-branch).
- Make your changes and commit them (git commit -m "Add some feature").
- Push to the branch (git push origin feature-branch).
- Create a pull request.
Contact If you have any questions or feedback, please feel free to reach out: Email: vignesh.muga@gmail.com GitHub: vignesh-0512
This is a simple example that uses a client-server architecture with a command-line interface (CLI). Advanced features with a graphical user interface (GUI) will be published soon.