query = {"t":"aa", "z":"q", "q":"ping", "x":{"id":"abcdefghij0123456789"}} response = {"t":"aa", "z":"r", "r": {"id":"mnopqrstuvwxyz123456"}}
query = {"t":"aa", "z":"q", "q":"findNode", "x": { "id":"abcdefghij0123456789", "target":"mnopqrstuvwxyz123456"}} response = {"t":"aa", "z":"r", "r": {"id":"0123456789abcdefghij", "nodes": "def456..."}}
提示:该命令可能将在未来被删除。
query = {"t":"aa", "z":"q", "q":"announce_peer", "x": { "id":"abcdefghij0123456789", "implied_port": 1, "info_hash":"mnopqrstuvwxyz123456", "port": 6881, "token": "aoeusnth"}} response = {"t":"aa", "z":"r", "r": {"id":"mnopqrstuvwxyz123456"}}
不像BitTorrent的DHT,getPeers 命令是不存在的。使用命令 getData 和 “target”={“username”,“tracker”,“m”}
来替代。
query = {"t":"aa", "z":"q", "q":"putData", "x": { "id":"abcdefghij0123456789", "sig_p":"34fdd3wdw", "sig_user":"nobody", "token": "aoeusnth", "p": { "v" : "arbitrary-value", "seq" : "10", "time" : "13131321321", height : "1000", "target": { "n":"name", "r":"resource", "t":"m" }}}} response = {"t":"aa", "z":"r", "r": {"id":"mnopqrstuvwxyz123456"}}
查看 基本结构 获得更多详细内容。
提示:target_id是B编码后的'“target”“'字段的哈希值。
query = {"t":"aa", "z":"q", "q":"getData", "x": { "id":"abcdefghij0123456789", "justtoken":"0", "target": { "n":"name", "r":"resource", "t":"m" }}}} response = {"t":"aa", "z":"r", "r": {"id":"mnopqrstuvwxyz123456", "token": "aoeusnth", "data": [ {"p":"data1", "sig_p":"34fdd3wdw", "sig_user":"nobody", {"p":"data2", "sig_p":"fg40958ejfdg", "sig_user":"twister" ] }}
查看 基本结构 获得更多详细内容。
提示:target_id是B编码后的'“target”“'字段的哈希值。