NetworkMonitor.canReachAsync

Asynchronously attempts to determine whether or not the host pointed to by connectable can be reached, without actually trying to connect to it.

For more details, see gio.network_monitor.NetworkMonitor.canReach.

When the operation is finished, callback will be called. You can then call gio.network_monitor.NetworkMonitor.canReachFinish to get the result of the operation.

Parameters

connectable gio.socket_connectable.SocketConnectable

a #GSocketConnectable

cancellable gio.cancellable.Cancellable

a #GCancellable, or null

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback to call when the request is satisfied