llarp/dht/explorenetworkjob.hpp

Namespaces

Name
llarp
[crypto.hpp]
llarp::dht

Classes

Name
struct llarp::dht::ExploreNetworkJob

Source code

#ifndef LLARP_DHT_EXPLORENETWORKJOB
#define LLARP_DHT_EXPLORENETWORKJOB

#include "tx.hpp"
#include <llarp/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;

      void
      SendReply() override;
    };
  }  // namespace dht
}  // namespace llarp

#endif

Updated on 2026-01-10 at 22:49:45 +0000