CNetAddr::CNetAddr

Construct a network address from an IPv6 address and optional scope id.

Synopsis

Declared in <netaddress.h>

explicit
CNetAddr(
    in6_addr const& pipv6Addr,
    uint32_t scope = 0);

Parameters

NameDescription
pipv6AddrThe IPv6 address to store.
scopeThe scope id for scoped/link-local IPv6 addresses.