Enumeration

SCNetworkReachabilityFlags

Flags that indicate the reachability of a network node name or address, including whether a connection is required, and whether some user intervention might be required when establishing a connection.

Declaration

typedef enum SCNetworkReachabilityFlags : uint32_t {
    ...
} SCNetworkReachabilityFlags;

Topics

Constants

kSCNetworkReachabilityFlagsTransientConnection

The specified node name or address can be reached via a transient connection, such as PPP.

kSCNetworkReachabilityFlagsReachable

The specified node name or address can be reached using the current network configuration.

kSCNetworkReachabilityFlagsConnectionRequired

The specified node name or address can be reached using the current network configuration, but a connection must first be established. If this flag is set, the kSCNetworkReachabilityFlagsConnectionOnTraffic flag, kSCNetworkReachabilityFlagsConnectionOnDemand flag, or kSCNetworkReachabilityFlagsIsWWAN flag is also typically set to indicate the type of connection required. If the user must manually make the connection, the kSCNetworkReachabilityFlagsInterventionRequired flag is also set.

kSCNetworkReachabilityFlagsConnectionOnTraffic

The specified node name or address can be reached using the current network configuration, but a connection must first be established. Any traffic directed to the specified name or address will initiate the connection.

kSCNetworkReachabilityFlagsInterventionRequired

The specified node name or address can be reached using the current network configuration, but a connection must first be established.

kSCNetworkReachabilityFlagsConnectionOnDemand

The specified node name or address can be reached using the current network configuration, but a connection must first be established.

kSCNetworkReachabilityFlagsIsLocalAddress

The specified node name or address is one that is associated with a network interface on the current system.

kSCNetworkReachabilityFlagsIsDirect

Network traffic to the specified node name or address will not go through a gateway, but is routed directly to one of the interfaces in the system.

kSCNetworkReachabilityFlagsIsWWAN

The specified node name or address can be reached via a cellular connection, such as EDGE or GPRS.

kSCNetworkReachabilityFlagsConnectionAutomatic

The specified node name or address can be reached using the current network configuration, but a connection must first be established. Any traffic directed to the specified name or address will initiate the connection. This flag is a synonym for kSCNetworkReachabilityFlagsConnectionOnTraffic.

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