llarp::dht

Classes

Name
struct llarp::dht::AbstractContext
struct llarp::dht::Bucket
struct llarp::dht::ConsensusMessage
struct llarp::dht::ExploreNetworkJob
struct llarp::dht::FindIntroMessage
struct llarp::dht::FindNameMessage
struct llarp::dht::FindRouterMessage
struct llarp::dht::GotIntroMessage
acknowledgement to PublishIntroMessage or reply to FindIntroMessage
struct llarp::dht::GotNameMessage
struct llarp::dht::GotRouterMessage
struct llarp::dht::IMessage
struct llarp::dht::ISNode
struct llarp::dht::Key_t
struct llarp::dht::LocalPublishServiceJob
struct llarp::dht::LocalRouterLookup
struct llarp::dht::LocalServiceAddressLookup
struct llarp::dht::LocalTagLookup
struct llarp::dht::PublishIntroMessage
struct llarp::dht::PublishServiceJob
struct llarp::dht::RCNode
struct llarp::dht::RecursiveRouterLookup
struct llarp::dht::RelayedFindRouterMessage
variant of FindRouterMessage relayed via path
struct llarp::dht::RelayedGotIntroMessage
struct llarp::dht::ServiceAddressLookup
struct llarp::dht::TagLookup
struct llarp::dht::TX
struct llarp::dht::TXHolder
struct llarp::dht::TXOwner
struct llarp::dht::XorMetric

Types

Name
using std::shared_ptr< const GotIntroMessage > GotIntroMessage_constptr
using std::shared_ptr< const GotRouterMessage > GotRouterMessage_constptr

Functions

Name
std::unique_ptr< AbstractContext > makeContext()
IMessage::Ptr_t DecodeMessage(const Key_t & from, llarp_buffer_t * buf, bool relayed =false)
bool DecodeMesssageList(Key_t from, llarp_buffer_t * buf, std::vector< IMessage::Ptr_t > & dst, bool relayed =false)

Attributes

Name
constexpr size_t IntroSetRelayRedundancy
number of routers to publish to
constexpr size_t IntroSetRequestsPerRelay
number of dht locations handled per relay
constexpr size_t IntroSetStorageRedundancy
constexpr size_t MAX_MSG_SIZE

Types Documentation

using GotIntroMessage_constptr

using llarp::dht::GotIntroMessage_constptr = typedef std::shared_ptr<const GotIntroMessage>;

using GotRouterMessage_constptr

using llarp::dht::GotRouterMessage_constptr = typedef std::shared_ptr<const GotRouterMessage>;

Functions Documentation

function makeContext

std::unique_ptr< AbstractContext > makeContext()

function DecodeMessage

IMessage::Ptr_t DecodeMessage(
    const Key_t & from,
    llarp_buffer_t * buf,
    bool relayed =false
)

function DecodeMesssageList

bool DecodeMesssageList(
    Key_t from,
    llarp_buffer_t * buf,
    std::vector< IMessage::Ptr_t > & dst,
    bool relayed =false
)

Attributes Documentation

variable IntroSetRelayRedundancy

static constexpr size_t IntroSetRelayRedundancy = 2;

number of routers to publish to

variable IntroSetRequestsPerRelay

static constexpr size_t IntroSetRequestsPerRelay = 2;

number of dht locations handled per relay

variable IntroSetStorageRedundancy

static constexpr size_t IntroSetStorageRedundancy =
        (IntroSetRelayRedundancy * IntroSetRequestsPerRelay);

variable MAX_MSG_SIZE

constexpr size_t MAX_MSG_SIZE = 2048;

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