Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 794 Bytes

README.md

File metadata and controls

30 lines (27 loc) · 794 Bytes

P2P-file-distribution-framework

The following code represents a basic Peer-to-Peer file distribution framework

How to run

  1. You must run the tracker.py file The tracker file listens to incoming incoming connections TCP/UDP and behaves accordingly
python tracker.py
  1. Run Peer.py and make sure to change the name and port of each peer Note:
  • You can run as many peers as you want.
  • Peers hold chunks of files that are not found at the tracker
def Main():
    peer = Peer({peer name} , portNumber={port Number})
    peer.start()    
python peer.py
  1. run app.py where you can request the files you want from the tracker.
python app.py

By