Function

SCNetworkReachabilityGetFlags(_:_:)

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

Declaration

func SCNetworkReachabilityGetFlags(_ target: SCNetworkReachability, _ flags: UnsafeMutablePointer<SCNetworkReachabilityFlags>) -> Bool

Parameters

target

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

flags

A pointer to memory that, on output, is filled with flags that describe the reachability of the specified target. (See SCNetworkReachabilityFlags for possible values.)

Return Value

TRUE if the flags are valid; FALSE if the status could not be determined.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software