Code Monkey home page Code Monkey logo

p2p-file-sharing's People

Contributors

ppeddabbu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

p2p-file-sharing's Issues

Peer-to-Peer File Sharing

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.