Code Monkey home page Code Monkey logo

discover's Introduction

Discover

Discover is a p2p program and library that lets you register and discover sibling servers in the network based on a shared passphrase. It uses the Mainline DHT network to advertise its own existence and to look for other nodes that are running with the same passphrase.

It authenticates sibling peers using an HMAC-based mechanism.

This code is based on Wherez (https://github.com/nictuku/wherez)

Documentation

Documentation can be found in GoDoc

Possible usages

  • find the location of your company's doozerd, Chubby or DNS servers.
  • robust way for stolen notebooks to "phone home".
  • register and locate servers in a corporate network based on function, by using different passphrases for the DNS server, LDAP server, etc.

Example application

Example CLI usage:

$ make && ./discover 8080 "wherezexample"
peer found: 14.15.87.13:3111
peer found: 77.66.77.22:3211
peer found: 16.97.12.12:3312

8080 is your application's port to be advertised to other nodes.

The IP:port pairs that appear are those peers provided by nodes that have been contacted and authenticated.

Recently started nodes may take several minutes to find other peers and to be found by them.

How does it work?

Presentation: http://goo.gl/vn7Pvh

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.