48 #import <Foundation/Foundation.h>
49 #import <SystemConfiguration/SystemConfiguration.h>
50 #import <netinet/in.h>
58 #define kReachabilityChangedNotification @"kNetworkReachabilityChangedNotification"
63 SCNetworkReachabilityRef reachabilityRef;
67 + (
Reachability *)reachabilityWithHostName:(NSString *)hostName;
70 + (
Reachability *)reachabilityWithAddress:(const struct sockaddr_in *)hostAddress;
80 - (BOOL)startNotifier;
83 - (NetworkStatus)currentReachabilityStatus;
86 - (BOOL)connectionRequired;