mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
store floodfills separately
This commit is contained in:
parent
d32f345aee
commit
fb9d351600
2 changed files with 14 additions and 23 deletions
3
NetDb.h
3
NetDb.h
|
@ -4,6 +4,7 @@
|
|||
#include <inttypes.h>
|
||||
#include <set>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <boost/filesystem.hpp>
|
||||
|
@ -73,7 +74,6 @@ namespace data
|
|||
void HandleDatabaseStoreMsg (uint8_t * buf, size_t len);
|
||||
void HandleDatabaseSearchReplyMsg (I2NPMessage * msg);
|
||||
|
||||
const RouterInfo * GetRandomNTCPRouter (bool floodfillOnly = false) const;
|
||||
const RouterInfo * GetRandomRouter (const RouterInfo * compatibleWith = nullptr, bool floodfillOnly = false) const;
|
||||
|
||||
void PostI2NPMsg (I2NPMessage * msg);
|
||||
|
@ -98,6 +98,7 @@ namespace data
|
|||
|
||||
std::map<IdentHash, LeaseSet *> m_LeaseSets;
|
||||
std::map<IdentHash, RouterInfo *> m_RouterInfos;
|
||||
std::vector<RouterInfo *> m_Floodfills;
|
||||
std::map<IdentHash, RequestedDestination *> m_RequestedDestinations;
|
||||
std::set<IdentHash> m_Subscriptions;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue