This is an image shareing system using P2P protocol. An image will be sliced and shared among all the participants in the network.
There are 2 roles, 1. Teacher (server) and 2. Student (client)
- choosing the image to share between peers. Peers will update their image through the P2P process when the teacher changes the image.
- maintain a full list of active users by performing an active check in every 5 sec
- Actively ask for image block which they don't have. The number of requests is limited to 5 at any time.
- Respond to other peers request. Student will send the image block, if available, to the requestor.