lokinet/llarp/dht/taglookup.hpp

34 lines
764 B
C++
Raw Normal View History

2019-01-22 01:14:02 +00:00
#ifndef LLARP_DHT_TAGLOOKUP
#define LLARP_DHT_TAGLOOKUP
#include <dht/tx.hpp>
#include <service/intro_set.hpp>
2019-01-22 01:14:02 +00:00
#include <service/tag.hpp>
namespace llarp
{
namespace dht
{
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;
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
Validate(const service::EncryptedIntroSet& introset) const override;
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 dht
} // namespace llarp
#endif