Method

GioNetworkMonitorcan_reach_finish

Declaration

gboolean
g_network_monitor_can_reach_finish (
  GNetworkMonitor* monitor,
  GAsyncResult* result,
  GError** error
)

Description

Finishes an async network connectivity test. See g_network_monitor_can_reach_async().

Parameters

result

Type: GAsyncResult

A GAsyncResult.

The data is owned by the caller of the function.
error

Type: GError **

The return location for a GError*, or NULL.

Return value

Type: gboolean

TRUE if network is reachable, FALSE if not.