Skip to main content

ZT_Peer

More...

#include <ZeroTierOne.h>

Public Attributes#

Name
uint64_taddress
intversionMajor
intversionMinor
intversionRev
intlatency
enum ZT_PeerRolerole
boolisBonded
intbondingPolicy
boolisHealthy
intnumAliveLinks
intnumTotalLinks
charcustomBondName
unsigned intpathCount
ZT_PeerPhysicalPathpaths

Detailed Description#

struct ZT_Peer;

Peer status result buffer

Public Attributes Documentation#

variable address#

uint64_t address;

ZeroTier address (40 bits)

variable versionMajor#

int versionMajor;

Remote major version or -1 if not known

variable versionMinor#

int versionMinor;

Remote minor version or -1 if not known

variable versionRev#

int versionRev;

Remote revision or -1 if not known

variable latency#

int latency;

Last measured latency in milliseconds or -1 if unknown

variable role#

enum ZT_PeerRole role;

What trust hierarchy role does this device have?

variable isBonded#

bool isBonded;

Whether a multi-link bond has formed

variable bondingPolicy#

int bondingPolicy;

The bonding policy used to bond to this peer

variable isHealthy#

bool isHealthy;

The health status of the bond to this peer

variable numAliveLinks#

int numAliveLinks;

The number of links that comprise the bond to this peer that are considered alive

variable numTotalLinks#

int numTotalLinks;

The number of links that comprise the bond to this peer

variable customBondName#

char customBondName;

The user-specified bond template name

variable pathCount#

unsigned int pathCount;

Number of paths (size of paths[])

variable paths#

ZT_PeerPhysicalPath paths;

Known network paths to peer


Updated on 25 October 2021 at 23:59:59 UTC