pub unsafe extern "C-unwind" fn SCNetworkReachabilitySetCallback(
target: &SCNetworkReachability,
callout: SCNetworkReachabilityCallBack,
context: *mut SCNetworkReachabilityContext,
) -> bool👎Deprecated
Available on crate feature
SCNetworkReachability only.Expand description
Assigns a client to a target, which receives callbacks when the reachability of the target changes.
Parameter target: The network reference associated with the address or
name to be checked for reachability.
Parameter callout: The function to be called when the reachability of the
target changes. If NULL, the current client for the target
is removed.
Parameter context: The SCNetworkReachabilityContext associated with
the callout. The value may be NULL.
Returns: Returns TRUE if the notification client was successfully set.