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.