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
|
|
|
|
2023-08-31 16:28:02 +00:00
|
|
|
namespace llarp::dht
|
2019-01-22 01:14:02 +00:00
|
|
|
{
|
2023-08-31 16:28:02 +00:00
|
|
|
struct LocalRouterLookup : public RecursiveRouterLookup
|
2019-01-22 01:14:02 +00:00
|
|
|
{
|
2023-08-31 16:28:02 +00:00
|
|
|
PathID_t localPath;
|
2019-01-22 01:14:02 +00:00
|
|
|
|
2023-08-31 16:28:02 +00:00
|
|
|
LocalRouterLookup(
|
|
|
|
const PathID_t& path, uint64_t txid, const RouterID& target, AbstractContext* ctx);
|
2019-01-22 01:14:02 +00:00
|
|
|
|
2023-08-31 16:28:02 +00:00
|
|
|
void
|
|
|
|
SendReply() override;
|
|
|
|
};
|
|
|
|
} // namespace llarp::dht
|
2019-01-22 01:14:02 +00:00
|
|
|
|
|
|
|
#endif
|