mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
find address
This commit is contained in:
parent
94a23be9d9
commit
66ff021938
@ -318,13 +318,6 @@ namespace data
|
||||
LogPrint (deletedCount," routers deleted");
|
||||
}
|
||||
|
||||
void NetDb::RequestDestination (const char * b32)
|
||||
{
|
||||
uint8_t destination[32];
|
||||
Base32ToByteStream (b32, strlen(b32), destination, 32);
|
||||
RequestDestination (destination, true);
|
||||
}
|
||||
|
||||
void NetDb::RequestDestination (const IdentHash& destination, bool isLeaseSet)
|
||||
{
|
||||
if (isLeaseSet) // we request LeaseSet through tunnels
|
||||
|
4
NetDb.h
4
NetDb.h
@ -64,10 +64,10 @@ namespace data
|
||||
void AddLeaseSet (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
|
||||
|
||||
void Subscribe (const IdentHash& ident); // keep LeaseSets upto date
|
||||
void Unsubscribe (const IdentHash& ident);
|
||||
|
||||
void RequestDestination (const char * b32); // in base32
|
||||
void RequestDestination (const IdentHash& destination, bool isLeaseSet = false);
|
||||
|
||||
void HandleDatabaseStoreMsg (uint8_t * buf, size_t len);
|
||||
|
Loading…
Reference in New Issue
Block a user