Code Monkey home page Code Monkey logo

peerbase's Introduction

PeerBase

For a tutorial see: http://cs.berry.edu/~nhamid/p2p

Also:
Nadeem Abdul Hamid. 2007. A lightweight framework for peer-to-peer programming. J. Comput. Sci. Coll. 22, 5 (May 2007), 98โ€“104. https://dl.acm.org/doi/10.5555/1229688.1229706

Java

To run this Java application, from a working directory with the src/peerbase folder in the Java classpath, type

java -cp ... peerbase.sample.FileShareApp <my-port> <peer-port>

The peer node will be launched listening on <my-port> and will attempt to connect/register with a peer at <peer-port>. (Obviously the first peer created will not have a valid <peer-port> to connect to - just put anything.)

Files will actually be transferred from one peer's working directory to another if they exist as named.

Python

(Written for Python 2.x.)

To run the demo Python application:

python filergui.py 9001 10 localhost:9000

In general,

filergui.py <server-port> <max-peers> <peer-ip>:<port>

peerbase's People

Contributors

nadeemabdulhamid 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.