Giter Site home page Giter Site logo

peerster's Introduction

Peerster

A peer-to-peer application in the Go programming language

How to

Main application

To display help, from the root directory:

go run *.go -h
  -GUI
    	whether GUI is enabled (set to true if GUIPort != 0)
  -GUIPort uint
    	port for the GUI client (if 0, a port is randomly assigned)
  -UIPort uint
    	port for the UI client (default 8080)
  -gossipAddr value
    	ip:port for the gossiper (default "127.0.0.1:5000")
  -name string
    	name of the gossiper
  -peers value
    	comma-separated list of peers of the form ip:port
  -rtimer uint
    	route rumors sending period in seconds, 0 to disable sending of route rumors
  -simple
    	run gossiper in simple broadcast mode

For example:

go run *.go -UIPort=8080 -GUIPort=8080 -gossipAddr=localhost:5000 -name=GossiperName -peers=localhost:5001

Client (command line)

First cd to the client directory

cd client

Then to display help:

go run *.go -h
  -UIPort uint
    	port for the UI client (default 8080)
  -dest string
    	destination for the private message or file request
  -file string
    	filename to be indexed by the gossiper
  -msg string
    	message to be sent
  -request string
    	request metafile of this hash

For example:

go run *.go -UIPort=8080 -msg="message content here"

GUI

The Graphical User Interface (GUI) will be available at:

http://localhost:8080/

when running the main application (depending on the port for GUIPort you choose).

Notes

This project was done during this course:

Decentralized Systems Engineering (CS-438 @EPFL) Fall 2018 (https://dedis.epfl.ch)

peerster's People

Contributors

gregunz avatar

Watchers

James Cloos avatar  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.