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
|
|
|
|
{
|
|
|
|
struct ExploreNetworkJob : public TX< RouterID, RouterID >
|
|
|
|
{
|
2019-01-24 01:31:02 +00:00
|
|
|
ExploreNetworkJob(const RouterID &peer, AbstractContext *ctx)
|
2019-01-22 01:14:02 +00:00
|
|
|
: TX< RouterID, RouterID >(TXOwner{}, peer, ctx)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
Validate(const RouterID &) const override
|
|
|
|
{
|
|
|
|
// TODO: check with lokid
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
Start(const TXOwner &peer) override;
|
|
|
|
|
|
|
|
void
|
|
|
|
SendReply() override;
|
|
|
|
};
|
|
|
|
} // namespace dht
|
|
|
|
} // namespace llarp
|
|
|
|
|
|
|
|
#endif
|