Giter Site home page Giter Site logo

p2p-file-sharing's Introduction

P2P-file-sharing

In this project,a simple 'Napster' like P2P system for file search and retrieval has been implemented. A user (peer) joins a P2P system by contacting a central server (server). The peer publishes the files she wishes to share by specifying the same to the central server. The peer searches for a file, again by contacting the central server. Based on input from the server, peer fetches the file from another peer (who has the file).

  1. There is a single central server (server.c) and at least 4 peers. Peers are different instances of the same code client.c. The server should be able to handle multiple peers simultaneously.

  2. All peers know the central server details. This can be accomplished via a command-line argument. Example: ./client server-ip server-port

  3. Each peer also has its own local folder named 'p2p-files' which is used to store files it wishes to publish as well as ones which it fetches from others.

  4. Each peer supports duplex operation i.e. it should be able to transmit (upload to another peer) as well as receive files (download from another peer) simultaneously. Multiple uploads and downloads are also be supported.

  5. Code works over any type of file: pdfs, jpg, png, txt etc

p2p-file-sharing's People

Contributors

amitpathania avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.