llarp::dht::RelayedFindRouterMessage

variant of FindRouterMessage relayed via path

#include <findrouter.hpp>

Inherits from llarp::dht::FindRouterMessage, llarp::dht::IMessage

Public Functions

Name
RelayedFindRouterMessage(const Key_t & from)
virtual bool HandleMessage(llarp_dht_context * ctx, std::vector< IMessage::Ptr_t > & replies) const override
handle a relayed FindRouterMessage, do a lookup on the dht and inform the path of the result TODO: smart path expiration logic needs to be implemented

Additional inherited members

Public Functions inherited from llarp::dht::FindRouterMessage

Name
FindRouterMessage(const Key_t & from)
FindRouterMessage(uint64_t id, const RouterID & target)
FindRouterMessage(uint64_t id)
~FindRouterMessage() override
virtual bool BEncode(llarp_buffer_t * buf) const override
virtual bool DecodeKey(const llarp_buffer_t & key, llarp_buffer_t * val) override

Public Attributes inherited from llarp::dht::FindRouterMessage

Name
RouterID targetKey
bool iterative
bool exploritory
uint64_t txid
uint64_t version

Public Types inherited from llarp::dht::IMessage

Name
using std::unique_ptr< IMessage > Ptr_t

Public Functions inherited from llarp::dht::IMessage

Name
virtual ~IMessage() =default
IMessage(const Key_t & from)
construct
virtual bool BEncode(llarp_buffer_t * buf) const =0
virtual bool DecodeKey(const llarp_buffer_t & key, llarp_buffer_t * val) =0

Public Attributes inherited from llarp::dht::IMessage

Name
Key_t From
PathID_t pathID
uint64_t version

Public Functions Documentation

function RelayedFindRouterMessage

inline RelayedFindRouterMessage(
    const Key_t & from
)

function HandleMessage

virtual bool HandleMessage(
    llarp_dht_context * ctx,
    std::vector< IMessage::Ptr_t > & replies
) const override

handle a relayed FindRouterMessage, do a lookup on the dht and inform the path of the result TODO: smart path expiration logic needs to be implemented

Reimplements: llarp::dht::IMessage::HandleMessage


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