mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 12:24:24 -04:00
Fixed up BITDHT versioning.
* Advertises client as DBxxxx where xxxx is provided by using app. * Added COMPILE switches to enable ANONYMOUS version or remove BD portion. * Fixed version code. * Added slow increase in retry timeout, to reduce DHT traffic over time. now RETRY PERIOD = query age / 2 * initialised bdToken bdVersion etc length. * new bdboot.txt git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3615 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d31cef0f11
commit
cc5fa5e5dc
9 changed files with 268 additions and 208 deletions
|
@ -27,10 +27,9 @@
|
|||
|
||||
/***
|
||||
* #define BE_DEBUG_DECODE 1
|
||||
* #define BE_DEBUG 1 // controlled from Makefile too.
|
||||
***/
|
||||
|
||||
//#define BE_DEBUG_DECODE 1
|
||||
|
||||
#ifdef BE_DEBUG_DECODE
|
||||
#include <stdio.h> /* debug */
|
||||
#endif
|
||||
|
@ -394,8 +393,9 @@ void be_dump_str(be_node *node)
|
|||
}
|
||||
|
||||
int len = be_str_len(node);
|
||||
int i = 0;
|
||||
printf("str[%d] = ", len);
|
||||
for(int i = 0; i < len; i++)
|
||||
for(i = 0; i < len; i++)
|
||||
{
|
||||
/* sensible chars */
|
||||
if ((node->val.s[i] > 31) && (node->val.s[i] < 127))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue