Coder Social home page Coder Social logo

dhthell's Introduction

#DhtHell

DhtHell is a program used to test out ipfs's DHT and other features, you can run it as a simple command line, and run all the commands you want yourself, or you can give it a config/command file to set up the initial network how you like, and maybe even run some commands for you.

##Command File Syntax The first line of the command file specifies the number of nodes to create. Following that line, and until a line containing "--" is reached, you may specify bootstrapping orders with the following syntax: [range]->[range] where range is a number or set of numbers in one of the following forms: by itself: 'X', single number list: '[X]' or full inclusive range: '[X-Y]'

For Example:

[1-4]->0

Specifies that nodes 1 through 4 should use node 0 as a boostrapping node.

Following the break sequence ("--") you may specify commands to run with the following syntax:

node# command args

For example:

4 put test hello

Would tell node 4 to run a put of the value "hello" for the key "test"

The Sequence "==" signals to switch input over to standard in, allowing the user to manually enter commands

Commands

Put: Args: key, val

Get: Args: key

Store: Args: key, val

Provide: Args: key

Diag: Args: none!

FindProv: Args: key

Example

25
[1-3]->0
[4-9]->1
[10-20]->2
[21-24]->3
--
6 put key val
23 get key
2 get key
==

dhthell's People

Contributors

whyrusleeping avatar

Stargazers

 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.