llarp::dht::GotIntroMessage

acknowledgement to PublishIntroMessage or reply to FindIntroMessage

#include <gotintro.hpp>

Inherits from llarp::dht::IMessage

Inherited by llarp::dht::RelayedGotIntroMessage

Public Functions

Name
GotIntroMessage(const Key_t & from)
GotIntroMessage(const GotIntroMessage & other)
GotIntroMessage(const Key_t & from, const Key_t & _closer, uint64_t _txid)
for iterative reply
GotIntroMessage(std::vector< service::EncryptedIntroSet > results, uint64_t txid)
for recursive reply
~GotIntroMessage() override =default
virtual bool BEncode(llarp_buffer_t * buf) const override
virtual bool DecodeKey(const llarp_buffer_t & key, llarp_buffer_t * val) override
virtual bool HandleMessage(llarp_dht_context * ctx, std::vector< IMessage::Ptr_t > & replies) const override

Public Attributes

Name
std::vector< service::EncryptedIntroSet > found
the found introsets
uint64_t txid
txid
std::optional< Key_t > closer
the key of a router closer in keyspace if iterative lookup

Additional inherited members

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

Public Attributes inherited from llarp::dht::IMessage

Name
Key_t From
PathID_t pathID
uint64_t version

Public Functions Documentation

function GotIntroMessage

inline GotIntroMessage(
    const Key_t & from
)

function GotIntroMessage

inline GotIntroMessage(
    const GotIntroMessage & other
)

function GotIntroMessage

inline GotIntroMessage(
    const Key_t & from,
    const Key_t & _closer,
    uint64_t _txid
)

for iterative reply

function GotIntroMessage

GotIntroMessage(
    std::vector< service::EncryptedIntroSet > results,
    uint64_t txid
)

for recursive reply

function ~GotIntroMessage

~GotIntroMessage() override =default

function BEncode

virtual bool BEncode(
    llarp_buffer_t * buf
) const override

Reimplements: llarp::dht::IMessage::BEncode

function DecodeKey

virtual bool DecodeKey(
    const llarp_buffer_t & key,
    llarp_buffer_t * val
) override

Reimplements: llarp::dht::IMessage::DecodeKey

function HandleMessage

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

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

Reimplemented by: llarp::dht::RelayedGotIntroMessage::HandleMessage

Public Attributes Documentation

variable found

std::vector< service::EncryptedIntroSet > found;

the found introsets

variable txid

uint64_t txid = 0;

txid

variable closer

std::optional< Key_t > closer;

the key of a router closer in keyspace if iterative lookup


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