ppeddabbu / p2p-file-sharing Goto Github PK
View Code? Open in Web Editor NEWPeer-to-Peer network for file downloading. It resembles some features of Bit-torrent, but much simplified.
Peer-to-Peer network for file downloading. It resembles some features of Bit-torrent, but much simplified.
you will implement a P2P file sharing application according to the
specification given below. The application will consist of two components: (a)
a server discovery component and (b) a file transfer component.
Protocol Description
Your P2P protocol will use the centralized index approach. You will
implement two programs, a centralized 'p2pregistery' and a client/server
application 'p2pservent'. your protocol will implement the four key operation
of P2P applications: join, publish, search, and fetch.
Join:
The registry will listen to a TCP socket at a well-known port. A new servent
will contact the registry at this port and indicate its presence. In addition,
the registry also listens to a UDP socket and every 60 seconds the servent
issues a HELLO' message to the UDP port of the registry. If the registry has
not received a HELLO message from a servent in 200 seconds, the servent is
removed from the list of available servents.
Publish:
After registration, the servent sends a list of files available at the servent to
the registry.
Search:
A servent looking for a file contacts the registry. The registry looks for the file
in its database (matching names) and returns the contact address of the
servent if an entry was found (the first matching entry).
Fetch:
The searching servent contacts the servent with the file and requests the
transfer of the file across a reliable socket and places the file in the same
directory as the shared files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.