Peer-to-Peer Network
A small peer-to-peer network in Python that shares files using a distributed hash table.
A university project where peers form a ring and share files without a central server.
What it does
- Supports five actions:
- Store data
- Fetch data
- Join the network
- Leave cleanly
- Recover when a peer drops out suddenly
- Peers check on their neighbours over UDP to see who is still online.
- Sends data over TCP so nothing gets lost.
- Spreads data across peers with a circular distributed hash table.
Built with
- Python
- UDP and TCP sockets
- Threads