2019-01-22 01:14:02 +00:00
|
|
|
#ifndef LLARP_DHT_TAGLOOKUP
|
|
|
|
#define LLARP_DHT_TAGLOOKUP
|
|
|
|
|
|
|
|
#include <dht/tx.hpp>
|
2019-04-22 18:35:19 +00:00
|
|
|
#include <service/intro_set.hpp>
|
2019-01-22 01:14:02 +00:00
|
|
|
#include <service/tag.hpp>
|
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
namespace dht
|
|
|
|
{
|
2020-04-07 18:38:56 +00:00
|
|
|
struct TagLookup : public TX<service::Tag, service::EncryptedIntroSet>
|
2019-01-22 01:14:02 +00:00
|
|
|
{
|
2020-02-13 15:51:25 +00:00
|
|
|
uint64_t recursionDepth;
|
2020-04-07 18:38:56 +00:00
|
|
|
TagLookup(
|
|
|
|
const TXOwner& asker, const service::Tag& tag, AbstractContext* ctx, uint64_t recursion)
|
|
|
|
: TX<service::Tag, service::EncryptedIntroSet>(asker, tag, ctx), recursionDepth(recursion)
|
2019-01-22 01:14:02 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
2020-04-07 18:38:56 +00:00
|
|
|
Validate(const service::EncryptedIntroSet& introset) const override;
|
2019-01-22 01:14:02 +00:00
|
|
|
|
|
|
|
void
|
2020-04-07 18:38:56 +00:00
|
|
|
Start(const TXOwner& peer) override;
|
2019-01-22 01:14:02 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
SendReply() override;
|
|
|
|
};
|
|
|
|
} // namespace dht
|
|
|
|
} // namespace llarp
|
|
|
|
|
|
|
|
#endif
|