table of contents
NNG_SOCKADDR_ZT(5) | NNG Reference Manual | NNG_SOCKADDR_ZT(5) |
NAME¶
nng_sockaddr_zt - ZeroTier socket address
SYNOPSIS¶
#include <nng/nng.h> enum sockaddr_family {
NNG_AF_ZT = 5, }; typedef struct {
uint16_t sa_family;
uint64_t sa_nwid;
uint64_t sa_nodeid;
uint32_t sa_port; } nng_sockaddr_zt;
DESCRIPTION¶
An nng_sockaddr_zt is the flavor of nng_sockaddr used to represent ZeroTier addresses, including the port number used by the zt transport.
Important
The ZeroTier transport, and the details of this structure,
are still considered experimental, and subject to change.
The following structure members are present:
sa_family
sa_nwid
This field holds the ZeroTier network number (or ID). This value is in native byte order.
sa_nodeid
sa_port
Note
ZeroTier port numbers are in native byte order, and are
larger
than TCP/IP port numbers. They are also not part of the ZeroTier protocol
itself, but defined by the Scalability Protocols binding for them.
SEE ALSO¶
2024-10-11 |