mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-05 15:11:13 +00:00
36 lines
486 B
C++
36 lines
486 B
C++
#ifndef ADDRESS_BOOK_H__
|
|
#define ADDRESS_BOOK_H__
|
|
|
|
#include <string.h>
|
|
#include <string>
|
|
#include <map>
|
|
#include "base64.h"
|
|
#include "util.h"
|
|
#include "Identity.h"
|
|
#include "Log.h"
|
|
|
|
namespace i2p
|
|
{
|
|
namespace data
|
|
{
|
|
class AddressBook
|
|
{
|
|
public:
|
|
|
|
AddressBook ();
|
|
const IdentHash * FindAddress (const std::string& address);
|
|
|
|
private:
|
|
|
|
void LoadHosts ();
|
|
void LoadHostsFromI2P ();
|
|
|
|
std::map<std::string, IdentHash> m_Addresses;
|
|
bool m_IsLoaded;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif
|
|
|
|
|