mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 13:30:36 -04:00
Added Random Timeouts / Retries to p3bitdht level.
* Fixed UdpRelay Interface Output. * added more variables to ConnectStateBox. * Changed Wait logic from sec since last attempt, to explicit attemptTS. * Improved PeerConnectStateBox::connectState(). * Added RETRY_ATTEMPT updateCB. * removed stupid clearing of addresses (killed Relay connections). * added more debugging git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-netupgrade@4455 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a63173b19e
commit
a5c77d02e7
4 changed files with 198 additions and 63 deletions
|
@ -68,8 +68,9 @@
|
|||
#define CSB_UPDATE_CONNECTED 0x0001
|
||||
#define CSB_UPDATE_DISCONNECTED 0x0002
|
||||
#define CSB_UPDATE_AUTH_DENIED 0x0003
|
||||
#define CSB_UPDATE_FAILED_ATTEMPT 0x0004
|
||||
#define CSB_UPDATE_MODE_UNAVAILABLE 0x0005
|
||||
#define CSB_UPDATE_RETRY_ATTEMPT 0x0004
|
||||
#define CSB_UPDATE_FAILED_ATTEMPT 0x0005
|
||||
#define CSB_UPDATE_MODE_UNAVAILABLE 0x0006
|
||||
|
||||
#include <iosfwd>
|
||||
#include <string>
|
||||
|
@ -108,6 +109,9 @@ class PeerConnectStateBox
|
|||
uint32_t mNetState;
|
||||
time_t mStateTS;
|
||||
uint32_t mNoAttempts;
|
||||
uint32_t mNoFailedAttempts;
|
||||
time_t mNextAttemptTS;
|
||||
time_t mAttemptLength;
|
||||
|
||||
// ProxyPort Storage.
|
||||
uint32_t mProxyPortFlags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue