llarp::service::Introduction

Public Functions

Name
bool IsExpired(llarp_time_t now) const
bool ExpiresSoon(llarp_time_t now, llarp_time_t dlt =30s) const
std::string ToString() const
bool BEncode(llarp_buffer_t * buf) const
bool BDecode(llarp_buffer_t * buf)
bool DecodeKey(const llarp_buffer_t & key, llarp_buffer_t * buf)
void Clear()
bool operator<(const Introduction & other) const
bool operator==(const Introduction & other) const
bool operator!=(const Introduction & other) const

Public Attributes

Name
RouterID router
PathID_t pathID
llarp_time_t latency
llarp_time_t expiresAt
uint64_t version

Public Functions Documentation

function IsExpired

inline bool IsExpired(
    llarp_time_t now
) const

function ExpiresSoon

inline bool ExpiresSoon(
    llarp_time_t now,
    llarp_time_t dlt =30s
) const

function ToString

std::string ToString() const

function BEncode

bool BEncode(
    llarp_buffer_t * buf
) const

function BDecode

inline bool BDecode(
    llarp_buffer_t * buf
)

function DecodeKey

bool DecodeKey(
    const llarp_buffer_t & key,
    llarp_buffer_t * buf
)

function Clear

void Clear()

function operator<

inline bool operator<(
    const Introduction & other
) const

function operator==

inline bool operator==(
    const Introduction & other
) const

function operator!=

inline bool operator!=(
    const Introduction & other
) const

Public Attributes Documentation

variable router

RouterID router;

variable pathID

PathID_t pathID;

variable latency

llarp_time_t latency = 0s;

variable expiresAt

llarp_time_t expiresAt = 0s;

variable version

uint64_t version = llarp::constants::proto_version;

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