Function SCNetworkReachabilityCreateWithAddress

Source
pub unsafe extern "C-unwind" fn SCNetworkReachabilityCreateWithAddress(
    allocator: Option<&CFAllocator>,
    address: NonNull<sockaddr>,
) -> Option<CFRetained<SCNetworkReachability>>
👎Deprecated
Available on crate features SCNetworkReachability and libc only.
Expand description

Creates a reference to the specified network address. This reference can be used later to monitor the reachability of the target host.

Parameter address: The address of the desired host.

Returns: Returns a reference to the new immutable SCNetworkReachabilityRef.

You must release the returned value.