mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 11:02:30 -04:00
updates to libbitdht to make it work with retroshare.
* decreased nodes per bucket to 10 - to try reduce traffic. * changed operator< to non const. * fixed up debuging. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3322 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1069ed0c58
commit
c1b624832f
6 changed files with 24 additions and 9 deletions
|
@ -37,6 +37,8 @@
|
|||
* #define DEBUG_UDP_LAYER 1
|
||||
***/
|
||||
|
||||
//#define DEBUG_UDP_LAYER 1
|
||||
|
||||
static const int UDP_DEF_TTL = 64;
|
||||
|
||||
/* NB: This #define makes the listener open 0.0.0.0:X port instead
|
||||
|
@ -77,7 +79,8 @@ class udpPacket
|
|||
int len;
|
||||
};
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, const struct sockaddr_in &addr)
|
||||
//std::ostream &operator<<(std::ostream &out, const struct sockaddr_in &addr)
|
||||
std::ostream &operator<<(std::ostream &out, struct sockaddr_in &addr)
|
||||
{
|
||||
out << "[" << inet_ntoa(addr.sin_addr) << ":";
|
||||
out << htons(addr.sin_port) << "]";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue