An open API service indexing awesome lists of open source software.

https://github.com/revmax-creator/socket-programming

This repository contains various examples and projects related to socket programming, demonstrating how to establish communication between devices over a network. The code covers both TCP and UDP protocols and includes implementations in languages like Python.
https://github.com/revmax-creator/socket-programming

socket socket-client socket-communication socket-programming socket-server socket-server-and-client sockets sockets-tcp

Last synced: 3 months ago
JSON representation

This repository contains various examples and projects related to socket programming, demonstrating how to establish communication between devices over a network. The code covers both TCP and UDP protocols and includes implementations in languages like Python.

Awesome Lists containing this project

README

          

# Socket Programming in Python

This repository contains various implementations of **socket programming** using Python. It demonstrates how to establish communication between devices over a network using **TCP and UDP protocols**.

## Features
- **Basic Client-Server Communication** (TCP & UDP)
- **Multi-Client Handling** (Threaded & Asynchronous Models)
- **File Transfer over Sockets**
- **Simple Chat Application**
- **Broadcast and Multicast Communication**
- **Secure Sockets using SSL/TLS**

## Getting Started
### Prerequisites
Ensure you have Python installed:
```bash
python --version
```
If not installed, download it from [python.org](https://www.python.org/).

### Installation
1. Clone the repository:
```bash
git clone https://github.com/RevMax-creator/Socket-Programming.git
cd Socket-Programming
```
2. Install dependencies (if any):
```bash
pip install -r requirements.txt
```

## Usage
Each example is contained in a separate directory. Follow the README inside each folder for detailed instructions.

### Running a TCP Server and Client
1. Start the server:
```bash
python server.py
```
2. Run the client in **another terminal**:
```bash
python client.py
```

## License
This project is licensed under the MIT License. See [LICENSE](https://github.com/RevMax-creator/Socket-Programming/tree/main?tab=License-1-ov-file) for details.