NetworkMonitorT.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 g_network_monitor_can_reach(). When the operation is finished, callback will be called. You can then call g_network_monitor_can_reach_finish() to get the result of the operation.

template NetworkMonitorT(TStruct)
void
canReachAsync
(
SocketConnectableIF connectable
,
Cancellable cancellable
,,
void* userData
)

Parameters

connectable SocketConnectableIF

a GSocketConnectable

cancellable Cancellable

a GCancellable, or NULL. [allow-none]

callback GAsyncReadyCallback

a GAsyncReadyCallback to call when the request is satisfied. [scope async]

userData void*

the data to pass to callback function. closure

Meta