4
A
回答
2
maidsafe-dht怎麼了?
1
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++項目中使用它。它運作良好,但需要外部密碼散列和隨機化功能。
相關問題
- 1. 實現最簡單的DHT
- 2. 現有DHT的Hello World
- 3. 實時p2p流與dht
- 4. 哪些DHT實現與Python 3.x兼容?
- 5. bittorrent-dht bruteforce散列發現問題
- 6. 在Java中用於學習目的的簡單的開源DHT實現
- 7. libtorrent dht peer request?
- 8. Torrent DHT udp
- 9. 瞭解如何通過DHT實現類似Pastry-P2P的資源分配
- 10. C++ Cast的實現
- 11. 的C實現LOWER_BOUND
- 12. DataGrid的C++實現
- 13. C#IEnumerable的實現
- 14. PushbackInputStream的C#實現
- 15. 實現IDisposable的C#
- 16. 和絃P2P分佈式哈希表(DHT)通過HTTP協議實現
- 17. DHT在P2P系統
- 18. PHP DHT info_hash列表?
- 19. 實現在C++
- 20. c#Math.Sqrt實現
- 21. C++ toUpper實現
- 22. 實現用C
- 23. C棧實現
- 24. AMQP C++實現
- 25. AODV C++實現
- 26. 實現在C++
- 27. ElGamal C#實現
- 28. C++實現
- 29. C++ shared_mutex實現
- 30. 實現用C
缺乏文檔= /我試圖找到它,但我不能。 – 2011-06-08 15:53:55
它是開源的,不是嗎?你有C++源碼... – 2011-06-08 15:56:34
謝謝!我是git克隆的源碼,它看起來非常高質量和易於理解。 – 2011-06-08 16:33:33