mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Adding reseed support. v1, only http so far.
This commit is contained in:
parent
d107ef4007
commit
86355cfe09
7 changed files with 223 additions and 45 deletions
3
NetDb.h
3
NetDb.h
|
@ -78,8 +78,8 @@ namespace data
|
|||
|
||||
bool CreateNetDb(const char * directory);
|
||||
void Load (const char * directory);
|
||||
void Load (const char * directory, bool reseed);
|
||||
void SaveUpdated (const char * directory);
|
||||
void DownloadRouterInfo (const std::string& address, const std::string& filename); // for reseed
|
||||
void Run (); // exploratory thread
|
||||
void Explore ();
|
||||
const RouterInfo * GetClosestFloodfill (const IdentHash& destination, const std::set<IdentHash>& excluded) const;
|
||||
|
@ -95,6 +95,7 @@ namespace data
|
|||
std::map<IdentHash, RequestedDestination *> m_RequestedDestinations;
|
||||
|
||||
bool m_IsRunning;
|
||||
int m_reseedRetries = 0;
|
||||
std::thread * m_Thread;
|
||||
i2p::util::Queue<I2NPMessage> m_Queue; // of I2NPDatabaseStoreMsg
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue