Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed AFReachabilityStatus naming scheme to be more clear

  • Loading branch information...
commit 346c56b8f4836fa26424e0ce7e825914c09c8ebb 1 parent 5b49cbb
@kcharwood authored
Showing with 8 additions and 8 deletions.
  1. +3 −3 AFNetworking/AFHTTPClient.h
  2. +5 −5 AFNetworking/AFHTTPClient.m
View
6 AFNetworking/AFHTTPClient.h
@@ -43,9 +43,9 @@ extern NSString * const AFNetworkingReachabilityDidChangeNotification;
#ifdef _SYSTEMCONFIGURATION_H
typedef enum{
AFReachabilityStatusUnknown = 0,
- AFReachabilityStatusUnavilable,
- AFReachabilityStatusAvailableViaWWAN,
- AFReachabilityStatusAvailableViaWiFi,
+ AFReachabilityStatusNotReachable,
+ AFReachabilityStatusReachableViaWWAN,
+ AFReachabilityStatusReachableViaWiFi,
}AFReachabilityStatus;
#endif
View
10 AFNetworking/AFHTTPClient.m
@@ -248,20 +248,20 @@ static void AFReachabilityCallback(SCNetworkReachabilityRef __unused target, SCN
BOOL needsConnection = ((flags & kSCNetworkReachabilityFlagsConnectionRequired) != 0);
BOOL isNetworkReachable = (isReachable && !needsConnection);
- AFReachabilityStatus status = AFReachabilityStatusUnavilable;
+ AFReachabilityStatus status = AFReachabilityStatusUnknown;
if(isNetworkReachable == NO){
- status = AFReachabilityStatusUnavilable;
+ status = AFReachabilityStatusNotReachable;
}
#if TARGET_OS_IPHONE
else if((flags & kSCNetworkReachabilityFlagsIsWWAN) != 0){
- status = AFReachabilityStatusAvailableViaWWAN;
+ status = AFReachabilityStatusReachableViaWWAN;
}
else{
- status = AFReachabilityStatusAvailableViaWiFi;
+ status = AFReachabilityStatusReachableViaWiFi;
}
#else
else {
- status = AFReachabilityStatusAvailableViaWiFi;
+ status = AFReachabilityStatusReachableViaWiFi;
}
#endif
AFNetworkReachabilityStatusBlock block = (AFNetworkReachabilityStatusBlock)info;
Please sign in to comment.
Something went wrong with that request. Please try again.