ip_addresses_from_variant


Description:


[ Version ( since = "1.42" ) ]
public GenericArray<IPAddress> ip_addresses_from_variant (Variant value, int family)

Utility function to convert a Variant representing a list of new-style NetworkManager IPv4 or IPv6 addresses (as described in the documentation for ip_addresses_to_variant) into a GenericArray of IPAddress objects.

Note that invalid addresses are discarded but the valid addresses are still returned.

Since 1.46, an empty list is returned if the variant type is not valid (before it was checked as assertion)

Parameters:

value

a Variant of type 'aa{sv}'

family

an IP address family

Returns:

a newly allocated GenericArray of IPAddress objects


Namespace: NM.Utils
Package: libnm