Function SCNetworkReachabilityGetFlags

Source
pub unsafe extern "C-unwind" fn SCNetworkReachabilityGetFlags(
    target: &SCNetworkReachability,
    flags: NonNull<SCNetworkReachabilityFlags>,
) -> bool
👎Deprecated
Available on crate feature SCNetworkReachability only.
Expand description

Determines if the given target is reachable using the current network configuration.

Parameter target: The network reference associated with the address or name to be checked for reachability.

Parameter flags: A pointer to memory that will be filled with the SCNetworkReachabilityFlags detailing the reachability of the specified target.

Returns: Returns TRUE if the network connection flags are valid; FALSE if the status could not be determined.