can_reach_async


Description:

public abstract async bool can_reach_async (SocketConnectable connectable, Cancellable? cancellable = null) throws Error

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 can_reach.

When the operation is finished, callback will be called. You can then call can_reach_async.end to get the result of the operation.

Parameters:

this

a NetworkMonitor

connectable

a SocketConnectable

cancellable

a Cancellable, or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

the data to pass to callback function




2022 vala-language.org