NetworkMonitor.canReachAsync

void canReachAsync(gio.socket_connectable.SocketConnectable connectable, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

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

connectablea #GSocketConnectable
cancellablea #GCancellable, or null
callbacka #GAsyncReadyCallback to call when the request is satisfied