lokinet/llarp/dht/explorenetworkjob.hpp

31 lines
592 B
C++
Raw Normal View History

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