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

https://github.com/nrobledosagredo/udp-communication-example

Basic implementation of client-server communication using UDP for message exchange.
https://github.com/nrobledosagredo/udp-communication-example

udp-protocol

Last synced: about 1 year ago
JSON representation

Basic implementation of client-server communication using UDP for message exchange.

Awesome Lists containing this project

README

          

# UDP communication example

![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)

## Overview
This repository demonstrates client-server interaction using UDP sockets. It includes two client scripts and one server script to showcase fundamental message sending and receiving functionality. Created as part of a learning project to explore UDP communication protocols.

## Features

- **UDP socket implementation:** Demonstrates basic UDP communication between clients and a server.
- **Multiple clients:** Includes two client scripts to simulate concurrent message sending.
- **Server response handling:** Processes incoming messages and sends appropriate responses.
- **Lightweight and modular:** Easy-to-understand scripts for learning purposes.

## Setup
1. **Clone the repository**:
```bash
git clone
cd
```

2. **Run the server**:
```bash
python server.py
```

3. **Run the clients**:
Open separate terminal windows and run:
```bash
python client1.py
python client2.py
```

4. The server will process messages from the clients and send responses.