|
|
@ -64,10 +64,10 @@ namespace data |
|
|
|
void AddLeaseSet (uint8_t * buf, int len); |
|
|
|
void AddLeaseSet (uint8_t * buf, int len); |
|
|
|
RouterInfo * FindRouter (const IdentHash& ident) const; |
|
|
|
RouterInfo * FindRouter (const IdentHash& ident) const; |
|
|
|
LeaseSet * FindLeaseSet (const IdentHash& destination) 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
|
|
|
|
|
|
|
|
|
|
|
|
void Subscribe (const IdentHash& ident); // keep LeaseSets upto date
|
|
|
|
void Subscribe (const IdentHash& ident); // keep LeaseSets upto date
|
|
|
|
void Unsubscribe (const IdentHash& ident); |
|
|
|
void Unsubscribe (const IdentHash& ident); |
|
|
|
|
|
|
|
|
|
|
|
void RequestDestination (const char * b32); // in base32
|
|
|
|
|
|
|
|
void RequestDestination (const IdentHash& destination, bool isLeaseSet = false); |
|
|
|
void RequestDestination (const IdentHash& destination, bool isLeaseSet = false); |
|
|
|
|
|
|
|
|
|
|
|
void HandleDatabaseStoreMsg (uint8_t * buf, size_t len); |
|
|
|
void HandleDatabaseStoreMsg (uint8_t * buf, size_t len); |
|
|
|