2019-01-22 01:14:02 +00:00
|
|
|
#ifndef LLARP_DHT_LOCALROUTERLOOKUP
|
|
|
|
#define LLARP_DHT_LOCALROUTERLOOKUP
|
|
|
|
|
|
|
|
#include <dht/recursiverouterlookup.hpp>
|
|
|
|
|
|
|
|
#include <path/path_types.hpp>
|
|
|
|
#include <router_contact.hpp>
|
|
|
|
#include <router_id.hpp>
|
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
namespace dht
|
|
|
|
{
|
|
|
|
struct LocalRouterLookup : public RecursiveRouterLookup
|
|
|
|
{
|
|
|
|
PathID_t localPath;
|
|
|
|
|
|
|
|
LocalRouterLookup(const PathID_t &path, uint64_t txid,
|
2019-01-24 01:31:02 +00:00
|
|
|
const RouterID &target, AbstractContext *ctx);
|
2019-01-22 01:14:02 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
SendReply() override;
|
|
|
|
};
|
|
|
|
} // namespace dht
|
|
|
|
} // namespace llarp
|
|
|
|
|
|
|
|
#endif
|