2019-01-22 01:14:02 +00:00
|
|
|
#ifndef LLARP_DHT_EXPLORENETWORKJOB
|
|
|
|
#define LLARP_DHT_EXPLORENETWORKJOB
|
|
|
|
|
|
|
|
#include <dht/tx.hpp>
|
|
|
|
#include <router_id.hpp>
|
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
namespace dht
|
|
|
|
{
|
2020-04-07 18:38:56 +00:00
|
|
|
struct ExploreNetworkJob : public TX<RouterID, RouterID>
|
2019-01-22 01:14:02 +00:00
|
|
|
{
|
2020-04-07 18:38:56 +00:00
|
|
|
ExploreNetworkJob(const RouterID& peer, AbstractContext* ctx)
|
|
|
|
: TX<RouterID, RouterID>(TXOwner{}, peer, ctx)
|
2019-01-22 01:14:02 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
2020-04-07 18:38:56 +00:00
|
|
|
Validate(const RouterID&) const override
|
2019-01-22 01:14:02 +00:00
|
|
|
{
|
|
|
|
// TODO: check with lokid
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2020-04-07 18:38:56 +00:00
|
|
|
Start(const TXOwner& peer) override;
|
2019-01-22 01:14:02 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
SendReply() override;
|
|
|
|
};
|
|
|
|
} // namespace dht
|
|
|
|
} // namespace llarp
|
|
|
|
|
|
|
|
#endif
|