1. 首页
  2. 考试认证
  3. 其它
  4. Net Bit Torrent DHT只读历史

Net Bit Torrent DHT只读历史

上传者: 2024-12-29 13:55:49上传 ZIP文件 31.35KB 热度 9次

名称:Net::BitTorrent::DHT-用于BitTorrent的类似Kademlia的DHT节点

概要:

use Net::BitTorrent::DHT;
use AnyEvent;
use Bit::Vector;
# Standalone node with user-defined port and boot_nodes
my $dht = Net::BitTorrent::DHT->new(
port => [1337 .. 1340, 0],
boot_nodes => [
['router.bittorrent.com', 6881],
['router.utorrent.com', 6881]
]
);
my $peer_quest = $dht->get_peers(Bit::Vector->new_Hex);
下载地址
用户评论