Function SCNetworkReachabilityCreateWithName

Source
pub unsafe extern "C-unwind" fn SCNetworkReachabilityCreateWithName(
    allocator: Option<&CFAllocator>,
    nodename: NonNull<c_char>,
) -> Option<CFRetained<SCNetworkReachability>>
👎Deprecated
Available on crate feature SCNetworkReachability only.
Expand description

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

Parameter nodename: The node name of the desired host. This name would be the same as that passed to the gethostbyname(3) or getaddrinfo(3) functions.

Returns: Returns a reference to the new immutable SCNetworkReachabilityRef.

You must release the returned value.