From 66f6c08f330b9bab527eb70bfc870e061b2b1092 Mon Sep 17 00:00:00 2001 From: drbob Date: Sat, 14 Jan 2012 09:44:40 +0000 Subject: [PATCH] Missed default size for new bdDhtFns. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4797 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libbitdht/src/bitdht/bdstddht.cc | 6 ++++++ libbitdht/src/bitdht/bdstddht.h | 1 + 2 files changed, 7 insertions(+) diff --git a/libbitdht/src/bitdht/bdstddht.cc b/libbitdht/src/bitdht/bdstddht.cc index a053f3566..6a2d5abec 100644 --- a/libbitdht/src/bitdht/bdstddht.cc +++ b/libbitdht/src/bitdht/bdstddht.cc @@ -318,6 +318,12 @@ void bdStdDht::bdPrintNodeId(std::ostream &out, const bdNodeId *a) /**************************/ +bdModDht::bdModDht() + :mNodesPerBucket(BITDHT_STANDARD_BUCKET_SIZE) +{ + return; +} + void bdModDht::setNodesPerBucket(uint16_t nodesPerBucket) { mNodesPerBucket = nodesPerBucket; diff --git a/libbitdht/src/bitdht/bdstddht.h b/libbitdht/src/bitdht/bdstddht.h index a6fe8136f..aeb8d2652 100644 --- a/libbitdht/src/bitdht/bdstddht.h +++ b/libbitdht/src/bitdht/bdstddht.h @@ -90,6 +90,7 @@ virtual void bdPrintNodeId(std::ostream &out, const bdNodeId *a); class bdModDht: public bdStdDht { public: + bdModDht(); virtual void setNodesPerBucket(uint16_t nodesPerBucket); virtual uint16_t bdNodesPerBucket(); /* used for bdspace */