llarp::dht::GotRouterMessage

Inherits from llarp::dht::IMessage

Public Functions

Name
GotRouterMessage(const Key_t & from, bool tunneled)
GotRouterMessage(const Key_t & from, uint64_t id, const std::vector< RouterContact > & results, bool tunneled)
GotRouterMessage(const Key_t & from, const Key_t & closer, uint64_t id, bool tunneled)
GotRouterMessage(uint64_t id, std::vector< RouterID > _near, bool tunneled)
GotRouterMessage(const RouterContact rc)
gossip message
GotRouterMessage(const GotRouterMessage & other)
~GotRouterMessage() override
virtual bool BEncode(llarp_buffer_t * buf) const override
virtual bool DecodeKey(const llarp_buffer_t & key, llarp_buffer_t * val) override
bool HandleMessage(llarp_dht_context * ctx, std::vector< std::unique_ptr< IMessage > > & replies) const override

Public Attributes

Name
std::vector< RouterContact > foundRCs
std::vector< RouterID > nearKeys
std::unique_ptr< Key_t > closerTarget
uint64_t txid
bool relayed

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 GotRouterMessage

inline GotRouterMessage(
    const Key_t & from,
    bool tunneled
)

function GotRouterMessage

inline GotRouterMessage(
    const Key_t & from,
    uint64_t id,
    const std::vector< RouterContact > & results,
    bool tunneled
)

function GotRouterMessage

inline GotRouterMessage(
    const Key_t & from,
    const Key_t & closer,
    uint64_t id,
    bool tunneled
)

function GotRouterMessage

inline GotRouterMessage(
    uint64_t id,
    std::vector< RouterID > _near,
    bool tunneled
)

function GotRouterMessage

inline GotRouterMessage(
    const RouterContact rc
)

gossip message

function GotRouterMessage

inline GotRouterMessage(
    const GotRouterMessage & other
)

function ~GotRouterMessage

~GotRouterMessage() override

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

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

Public Attributes Documentation

variable foundRCs

std::vector< RouterContact > foundRCs;

variable nearKeys

std::vector< RouterID > nearKeys;

variable closerTarget

std::unique_ptr< Key_t > closerTarget;

variable txid

uint64_t txid = 0;

variable relayed

bool relayed = false;

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