2019-01-22 01:14:02 +00:00
|
|
|
#ifndef LLARP_DHT_EXPLORENETWORKJOB
|
|
|
|
#define LLARP_DHT_EXPLORENETWORKJOB
|
|
|
|
|
2021-03-09 22:24:35 +00:00
|
|
|
#include "tx.hpp"
|
|
|
|
#include <llarp/router_id.hpp>
|
2019-01-22 01:14:02 +00:00
|
|
|
|
2023-10-12 13:43:07 +00:00
|
|
|
namespace llarp::dht
|
2019-01-22 01:14:02 +00:00
|
|
|
{
|
2023-10-12 13:43:07 +00:00
|
|
|
struct ExploreNetworkJob : public TX<RouterID, RouterID>
|
2019-01-22 01:14:02 +00:00
|
|
|
{
|
2023-10-12 13:43:07 +00:00
|
|
|
ExploreNetworkJob(const RouterID& peer, AbstractDHTMessageHandler* ctx)
|
|
|
|
: TX<RouterID, RouterID>(TXOwner{}, peer, ctx)
|
|
|
|
{}
|
2019-01-22 01:14:02 +00:00
|
|
|
|
2023-10-12 13:43:07 +00:00
|
|
|
bool
|
|
|
|
Validate(const RouterID&) const override
|
|
|
|
{
|
|
|
|
// TODO: check with lokid
|
|
|
|
return true;
|
|
|
|
}
|
2019-01-22 01:14:02 +00:00
|
|
|
|
2023-10-12 13:43:07 +00:00
|
|
|
void
|
|
|
|
Start(const TXOwner& peer) override;
|
2019-01-22 01:14:02 +00:00
|
|
|
|
2023-10-12 13:43:07 +00:00
|
|
|
void
|
|
|
|
SendReply() override;
|
|
|
|
};
|
|
|
|
} // namespace llarp::dht
|
2019-01-22 01:14:02 +00:00
|
|
|
|
|
|
|
#endif
|