llarp::dht::TX

More...

Public Functions

Name
TX(const TXOwner & asker, const K & k, AbstractContext * p)
virtual ~TX() =default
void OnFound(const Key_t & askedPeer, const V & value)
virtual bool Validate(const V & value) const =0
virtual void Start(const TXOwner & peer) =0
virtual void SendReply() =0

Public Attributes

Name
K target
AbstractContext * parent
std::set< Key_t > peersAsked
std::vector< V > valuesFound
TXOwner whoasked

Detailed Description

template <typename K ,
typename V >
struct llarp::dht::TX;

Public Functions Documentation

function TX

inline TX(
    const TXOwner & asker,
    const K & k,
    AbstractContext * p
)

function ~TX

virtual ~TX() =default

function OnFound

inline void OnFound(
    const Key_t & askedPeer,
    const V & value
)

function Validate

virtual bool Validate(
    const V & value
) const =0

Reimplemented by: llarp::dht::RecursiveRouterLookup::Validate, llarp::dht::ExploreNetworkJob::Validate, llarp::dht::PublishServiceJob::Validate, llarp::dht::TagLookup::Validate, llarp::dht::ServiceAddressLookup::Validate

function Start

virtual void Start(
    const TXOwner & peer
) =0

Reimplemented by: llarp::dht::ExploreNetworkJob::Start, llarp::dht::PublishServiceJob::Start, llarp::dht::RecursiveRouterLookup::Start, llarp::dht::ServiceAddressLookup::Start, llarp::dht::TagLookup::Start

function SendReply

virtual void SendReply() =0

Reimplemented by: llarp::dht::ExploreNetworkJob::SendReply, llarp::dht::LocalRouterLookup::SendReply, llarp::dht::LocalServiceAddressLookup::SendReply, llarp::dht::LocalTagLookup::SendReply, llarp::dht::PublishServiceJob::SendReply, llarp::dht::LocalPublishServiceJob::SendReply, llarp::dht::RecursiveRouterLookup::SendReply, llarp::dht::ServiceAddressLookup::SendReply, llarp::dht::TagLookup::SendReply

Public Attributes Documentation

variable target

K target;

variable parent

AbstractContext * parent;

variable peersAsked

std::set< Key_t > peersAsked;

variable valuesFound

std::vector< V > valuesFound;

variable whoasked

TXOwner whoasked;

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