• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

whyrusleeping/dhtHell: a testing framework for the dht in IPFS

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

whyrusleeping/dhtHell

开源软件地址:

https://github.com/whyrusleeping/dhtHell

开源编程语言:

Go 100.0%

开源软件介绍:

#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"

And:

[3-7] get test

Would tell nodes 3 through 7 to get 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

GetBandwidth:
	Args: none!

FindPeer:
	Args: peerid

Example

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

License

This project is under an MIT license.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
fission-suite/ipfs-cluster-aws发布时间:2022-06-22
下一篇:
squishyhuman/c-protobuf: Protobuf for c-ipfs implementation发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap