lokinet/llarp/dht/explorenetworkjob.hpp

35 lines
651 B
C++
Raw Normal View History

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