Attempts to determine whether or not the host pointed to by connectable can be reached, without actually trying to connect to it.
Asynchronously attempts to determine whether or not the host pointed to by connectable can be reached, without actually trying to connect to it.
Finishes an async network connectivity test. See gio.network_monitor.NetworkMonitor.canReachAsync.
Connect to NetworkChanged signal.
Gets a more detailed networking state than gio.network_monitor.NetworkMonitor.getNetworkAvailable.
Checks if the network is available. "Available" here means that the system has a default route available for at least one of IPv4 or IPv6. It does not necessarily imply that the public Internet is reachable. See #GNetworkMonitor:network-available for more details.
Checks if the network is metered. See #GNetworkMonitor:network-metered for more details.
gio.network_monitor.NetworkMonitor provides an easy-to-use cross-platform API for monitoring network connectivity. On Linux, the available implementations are based on the kernel's netlink interface and on NetworkManager.
There is also an implementation for use inside Flatpak sandboxes.