get_connectivity


Description:

[ Version ( since = "1.16" ) ]
public ConnectivityState get_connectivity (int addr_family)

The connectivity state of the device for given address family.

Supported address families are af_inet for IPv4, af_inet6 for IPv6 or af_unspec for any.

Parameters:

this

a Device

addr_family

network address family

Returns:

the current connectivity state