mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +00:00
46 lines
841 B
C++
46 lines
841 B
C++
#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 >
|
|
{
|
|
ExploreNetworkJob(const RouterID &peer, AbstractContext *ctx)
|
|
: TX< RouterID, RouterID >(TXOwner{}, peer, ctx)
|
|
{
|
|
}
|
|
|
|
bool
|
|
Validate(const RouterID &) const override
|
|
{
|
|
// TODO: check with lokid
|
|
return true;
|
|
}
|
|
|
|
void
|
|
Start(const TXOwner &peer) override;
|
|
|
|
bool
|
|
GetNextPeer(Key_t &, const std::set< Key_t > &) override
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void
|
|
DoNextRequest(const Key_t &) override
|
|
{
|
|
}
|
|
|
|
void
|
|
SendReply() override;
|
|
};
|
|
} // namespace dht
|
|
} // namespace llarp
|
|
|
|
#endif
|