2011-06-08 82 views

回答

2

maidsafe-dht怎麼了?

+1

缺乏文檔= /我試圖找到它,但我不能。 – 2011-06-08 15:53:55

+1

它是開源的,不是嗎?你有C++源碼... – 2011-06-08 15:56:34

+0

謝謝!我是git克隆的源碼,它看起來非常高質量和易於理解。 – 2011-06-08 16:33:33

1

您可以嘗試bitdht使用retroshare。

+0

太糟糕了,它不完全完整。 – marrat 2011-12-28 11:06:12

2

OpenDHT是一款輕量級的Kademlia DHT C++ 11。該API非常簡單:

dht::DhtRunner node; 

// Launch a dht node on a new thread, using a 
// generated RSA key pair, and listen on port 4222. 
node.run(4222, dht::crypto::generateIdentity(), true); 

// Join the network through any running node, 
// here using a known bootstrap node. 
node.bootstrap("bootstrap.ring.cx", "4222"); 

// put some data on the dht 
std::vector<uint8_t> some_data(5, 10); 
node.put("unique_key", some_data); 

它支持在OS X,Linux和Windows上使用LLVM或GCC進行編譯。

1

我找到了Transmission使用的BitTorrent DHT library。它是用純C編寫的,但它可以很容易地從C++中使用。

我在我的C++項目中使用它。它運作良好,但需要外部密碼散列和隨機化功能。