Sha256: 68085b33623c13a9062d4361f843d260654a160237cba77faa0fc746322c3bfc
Contents?: true
Size: 871 Bytes
Versions: 18
Compression:
Stored size: 871 Bytes
Contents
#import <Foundation/Foundation.h> #import <SystemConfiguration/SystemConfiguration.h> typedef enum { NotReachable = 0, ReachableViaWiFi, ReachableViaWWAN } NetworkStatus; #define kReachabilityChangedNotification @"kNetworkReachabilityChangedNotification" @interface Reachability: NSObject { BOOL localWiFiRef; SCNetworkReachabilityRef reachabilityRef; } + (Reachability*) reachabilityWithHostName: (NSString*) hostName; + (Reachability*) reachabilityWithAddress: (const struct sockaddr_in*) hostAddress; + (Reachability*) reachabilityForInternetConnection; + (Reachability*) reachabilityForLocalWiFi; - (BOOL) startNotifier; - (void) stopNotifier; - (NetworkStatus) currentReachabilityStatus; //WWAN may be available, but not active until a connection has been established. //WiFi may require a connection for VPN on Demand. - (BOOL) connectionRequired; @end
Version data entries
18 entries across 18 versions & 2 rubygems