llarp::RouterVersion

Public Types

Name
using std::array< uint16_t, 3 > Version_t

Public Functions

Name
RouterVersion() =default
RouterVersion(const Version_t & routerVersion, uint64_t protoVersion)
bool BEncode(llarp_buffer_t * buf) const
bool BDecode(llarp_buffer_t * buf)
bool IsEmpty() const
return true if this router version is all zeros
void Clear()
set to be empty
std::string ToString() const
bool IsCompatableWith(const RouterVersion & other) const
return true if the other router version is compatible with ours
bool operator<(const RouterVersion & other) const
compare router versions
bool operator!=(const RouterVersion & other) const
bool operator==(const RouterVersion & other) const

Public Types Documentation

using Version_t

using llarp::RouterVersion::Version_t =  std::array<uint16_t, 3>;

Public Functions Documentation

function RouterVersion

RouterVersion() =default

function RouterVersion

explicit RouterVersion(
    const Version_t & routerVersion,
    uint64_t protoVersion
)

function BEncode

bool BEncode(
    llarp_buffer_t * buf
) const

function BDecode

bool BDecode(
    llarp_buffer_t * buf
)

function IsEmpty

bool IsEmpty() const

return true if this router version is all zeros

function Clear

void Clear()

set to be empty

function ToString

std::string ToString() const

function IsCompatableWith

bool IsCompatableWith(
    const RouterVersion & other
) const

return true if the other router version is compatible with ours

function operator<

inline bool operator<(
    const RouterVersion & other
) const

compare router versions

function operator!=

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

function operator==

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

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