llarp::AddressInfo

Public Functions

Name
bool BDecode(llarp_buffer_t * buf)
bool BEncode(llarp_buffer_t * buf) const
bool DecodeKey(const llarp_buffer_t & k, llarp_buffer_t * buf)
void fromSockAddr(const SockAddr & address)
Updates our ip and port to reflect that of the given SockAddr.
net::ipaddr_t IP() const
get this as an explicit v4 or explicit v6
net::ipv4addr_t IPv4() const
get this as an v4 or throw if it is not one
std::string ToString() const

Public Attributes

Name
uint16_t rank
std::string dialect
llarp::PubKey pubkey
net::ipv6addr_t ip
uint16_t port
uint64_t version

Public Functions Documentation

function BDecode

inline bool BDecode(
    llarp_buffer_t * buf
)

function BEncode

bool BEncode(
    llarp_buffer_t * buf
) const

function DecodeKey

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

function fromSockAddr

void fromSockAddr(
    const SockAddr & address
)

Updates our ip and port to reflect that of the given SockAddr.

function IP

net::ipaddr_t IP() const

get this as an explicit v4 or explicit v6

function IPv4

inline net::ipv4addr_t IPv4() const

get this as an v4 or throw if it is not one

function ToString

std::string ToString() const

Public Attributes Documentation

variable rank

uint16_t rank;

variable dialect

std::string dialect;

variable pubkey

llarp::PubKey pubkey;

variable ip

net::ipv6addr_t ip {};

variable port

uint16_t port;

variable version

uint64_t version = llarp::constants::proto_version;

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