Giter Club home page Giter Club logo

simpledht's Introduction

SimpleDHT

The Simple Distributed Hash Table (DHT) is a DHT based on 'Chord' providing a sophisticated key-value storage system between any limited number of Android devices on a simluted network

The program can run any number of nodes (tested using one to five) to function. Once a node is started it will join the ring and find its correct position based on the hash of its node ID (i.e. "5554", "5556", etc.). After all desired nodes are running, messages can be entered in the associated message box. These messages will be hashed based on their key and sent foward or back across the ring until its correct position is found. Once on the associated device the key-value pair will be stored on that devices internal storage. Simililar operation applies for deleting a key-value pair from the ring. The query operation funcitons slightly different in that the quering node will have to wait until it recieves a responose back with the key-value pair. Likewise, using the keys "@" and "*" will return or delete all key-value pairs across a single node or the entire ring, respectively.

More detail on either program can be found in comments within the programs themselves.


Regards to Steve Ko of SUNY University at Buffalo for the skeleton code as useful functionality from previous assignments

simpledht's People

Contributors

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