Reachability Class Reference
Inherits from | NSObject |
---|---|
Declared in | Reachability.h Reachability.m |
+ reachabilityWithHostName:
Use to check the reachability of a given host name.
+ (instancetype)reachabilityWithHostName:(NSString *)hostName
Discussion
Use to check the reachability of a given host name.
Declared In
Reachability.h
+ reachabilityWithAddress:
Use to check the reachability of a given IP address.
+ (instancetype)reachabilityWithAddress:(const struct sockaddr_in *)hostAddress
Discussion
Use to check the reachability of a given IP address.
Declared In
Reachability.h
+ reachabilityForInternetConnection
Checks whether the default route is available. Should be used by applications that do not connect to a particular host.
+ (instancetype)reachabilityForInternetConnection
Discussion
Checks whether the default route is available. Should be used by applications that do not connect to a particular host.
Declared In
Reachability.h
+ reachabilityForLocalWiFi
Checks whether a local WiFi connection is available.
+ (instancetype)reachabilityForLocalWiFi
Discussion
Checks whether a local WiFi connection is available.
Declared In
Reachability.h
– startNotifier
Start listening for reachability notifications on the current run loop.
- (BOOL)startNotifier
Discussion
Start listening for reachability notifications on the current run loop.
Declared In
Reachability.h
– connectionRequired
WWAN may be available, but not active until a connection has been established. WiFi may require a connection for VPN on Demand.
- (BOOL)connectionRequired
Discussion
WWAN may be available, but not active until a connection has been established. WiFi may require a connection for VPN on Demand.
Declared In
Reachability.h