Proactively seek, enumerate, and distribute external surface addresses

This commit is contained in:
Joseph Henry 2022-02-17 15:39:17 -08:00
parent 1b0c183913
commit 96aa1c30a6
No known key found for this signature in database
GPG key ID: C45B33FF5EBC9344
3 changed files with 25 additions and 1 deletions

View file

@ -44,6 +44,13 @@ public:
*/
void iam(void *tPtr,const Address &reporter,const int64_t receivedOnLocalSocket,const InetAddress &reporterPhysicalAddress,const InetAddress &myPhysicalAddress,bool trusted,int64_t now);
/**
* Return all known external surface addresses reported by peers
*
* @return A vector of InetAddress(es)
*/
std::vector<InetAddress> whoami();
/**
* Clean up database periodically
*