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

Version Path
rhodes-7.6.0 platform/iphone/Classes/Reachability.h
rhodes-7.5.1 platform/iphone/Classes/Reachability.h
rhodes-7.4.1 platform/iphone/Classes/Reachability.h
rhodes-7.1.17 platform/iphone/Classes/Reachability.h
rhodes-6.2.0 platform/iphone/Classes/Reachability.h
rhodes-6.0.11 platform/iphone/Classes/Reachability.h
rhodes-5.5.18 platform/iphone/Classes/Reachability.h
rhodes-5.5.17 platform/iphone/Classes/Reachability.h
rhodes-5.5.15 platform/iphone/Classes/Reachability.h
rhodes-5.5.0.22 platform/iphone/Classes/Reachability.h
rhodes-5.5.2 platform/iphone/Classes/Reachability.h
rhodes-5.5.0.7 platform/iphone/Classes/Reachability.h
rhodes-5.5.0.3 platform/iphone/Classes/Reachability.h
rhodes-5.5.0 platform/iphone/Classes/Reachability.h
tauplatform-1.0.3 platform/iphone/Classes/Reachability.h
tauplatform-1.0.2 platform/iphone/Classes/Reachability.h
tauplatform-1.0.1 platform/iphone/Classes/Reachability.h
rhodes-3.5.1.12 platform/iphone/Classes/Reachability.h