mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't copy RouterInfos and LeaseSets
This commit is contained in:
parent
207022a6bb
commit
f3c6dd4d3d
6 changed files with 50 additions and 24 deletions
4
NetDb.h
4
NetDb.h
|
@ -58,8 +58,8 @@ namespace data
|
|||
void Start ();
|
||||
void Stop ();
|
||||
|
||||
void AddRouterInfo (uint8_t * buf, int len);
|
||||
void AddLeaseSet (uint8_t * buf, int len);
|
||||
void AddRouterInfo (const IdentHash& ident, uint8_t * buf, int len);
|
||||
void AddLeaseSet (const IdentHash& ident, uint8_t * buf, int len);
|
||||
RouterInfo * FindRouter (const IdentHash& ident) const;
|
||||
LeaseSet * FindLeaseSet (const IdentHash& destination) const;
|
||||
const IdentHash * FindAddress (const std::string& address) { return m_AddressBook.FindAddress (address); }; // TODO: move AddressBook away from NetDb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue