upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 364fbfb..4379d04 100644
--- a/src/net.h
+++ b/src/net.h
@@ -43,6 +43,14 @@ static const unsigned int MAX_PEX_DESCRIPTOR_BYTES = 1024;
43// connection is the intended traffic; anything faster is someone else's idea. 43// connection is the intended traffic; anything faster is someone else's idea.
44static const int64 PEX_MIN_INTERVAL = 60; 44static const int64 PEX_MIN_INTERVAL = 60;
45 45
46// How long to sit registered at a rendezvous relay before giving up on this
47// attempt and registering again. Bounded because a registration socket that
48// goes quiet is indistinguishable, from inside recv(), from one whose path has
49// died -- and the second kind never wakes up. Five minutes is short enough
50// that a node is unreachable only briefly and long enough that the reconnect
51// traffic is nothing: one per relay per five minutes.
52static const int BTF_RENDEZVOUS_WAIT_SECS = 300;
53
46// Descriptors to hand a peer: ours first, then peers that answered us. 54// Descriptors to hand a peer: ours first, then peers that answered us.
47void BtfPexCollect(std::vector<std::string>& vDescOut); 55void BtfPexCollect(std::vector<std::string>& vDescOut);
48// Verify descriptors a peer sent and remember the good ones. Returns how many. 56// Verify descriptors a peer sent and remember the good ones. Returns how many.