Missed default size for new bdDhtFns.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4797 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2012-01-14 09:44:40 +00:00
parent d138dde66c
commit 66f6c08f33
2 changed files with 7 additions and 0 deletions

View File

@ -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) void bdModDht::setNodesPerBucket(uint16_t nodesPerBucket)
{ {
mNodesPerBucket = nodesPerBucket; mNodesPerBucket = nodesPerBucket;

View File

@ -90,6 +90,7 @@ virtual void bdPrintNodeId(std::ostream &out, const bdNodeId *a);
class bdModDht: public bdStdDht class bdModDht: public bdStdDht
{ {
public: public:
bdModDht();
virtual void setNodesPerBucket(uint16_t nodesPerBucket); virtual void setNodesPerBucket(uint16_t nodesPerBucket);
virtual uint16_t bdNodesPerBucket(); /* used for bdspace */ virtual uint16_t bdNodesPerBucket(); /* used for bdspace */