diff --git a/src/bitdht/bdstddht.cc b/src/bitdht/bdstddht.cc index a053f35..6a2d5ab 100644 --- a/src/bitdht/bdstddht.cc +++ b/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/src/bitdht/bdstddht.h b/src/bitdht/bdstddht.h index a6fe813..aeb8d26 100644 --- a/src/bitdht/bdstddht.h +++ b/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 */