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