<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Kademlia基于 Node.js 的 DHT 實現(xiàn)

          聯(lián)合創(chuàng)作 · 2023-09-23 17:05

          Kademlia 是基于 Node.js 的 DHT (分布式哈希表)實現(xiàn)。

          使用方法:

          var dht = require('kademlia')
          var node = new dht.KNode({ address: 'IP address', port: portNumber });
          node.connect('existing peer ip', port);
          node.set('foo', 'bar');
          
          node.get('foo', function(err, data) {
              console.log("Retrieved", data, "from DHT");
              console.log(data == 'bar');
          });
          瀏覽 21
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  4438AV| 婷婷综合激情亚洲 | 色婷婷不卡 | 3级中文字幕 | 插逼免费 |