Determines if the specified network target is reachable using the current network configuration.
- iOS 2.0+
- macOS 10.3+
- tvOS 9.0+
The network reference associated with the address or name to be checked for reachability.
A pointer to memory that, on output, is filled with flags that describe the reachability of the specified target. (See
SCNetworkfor possible values.)
TRUE if the flags are valid;
FALSE if the status could not be determined.