https://github.com/sonsongithub/snreachability
Network reachability check class for iOS
https://github.com/sonsongithub/snreachability
Last synced: about 2 months ago
JSON representation
Network reachability check class for iOS
- Host: GitHub
- URL: https://github.com/sonsongithub/snreachability
- Owner: sonsongithub
- Created: 2012-08-28T13:37:55.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-09-03T08:36:38.000Z (over 12 years ago)
- Last Synced: 2025-02-03T14:47:14.265Z (4 months ago)
- Language: Objective-C
- Size: 113 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SNReachability
==============
Network reachability check class for iOS
SNReachablityChecker class notifies an observer of changing network status.
The notification informs reachability and what kind of methods a device uses in order to reach the internet, local Wi-Fi or specified host.---
License
=======
BSD License.---
SNReachablityChecker Reference
=======+ (SNReachablityChecker*)reachabilityWithHostName:(NSString*)hostName;
###Parameters
####hostName
The name of host to check reachability to it.
###Discussion
Returned the instance to notify of information about reachability to the host you specified.+ (SNReachablityChecker*)reachabilityForInternetConnection;
###Discussion
Returned the instance to notify of information about reachability to the internet.+ (SNReachablityChecker*)reachabilityForLocalWiFi;
###Discussion
Returned the instance to notify of information about reachability to the local wireless network.- (BOOL)start;
###Discussion
Start notifying.- (void)stop;
###Discussion
Stop notifying.Properties
======
###type
The receiver's type.@property (nonatomic, readonly) SNReachablityCheckerType type;
###Discussion
Return type of the reachability checer type, expressed "SNReachablityCheckerType".###status
The receiver's status.@property (nonatomic, readonly) SNReachablityCheckerStatus status;
###Discussion
Return the status of current network, expressed "SNReachablityCheckerStatus".---
Constants
======##SNReachablityCheckerType
typedef enum SNReachablityCheckerType_ {
SNReachablityCheckerHostConnectivity = 0,
SNReachablityCheckerInternetConnectivity = 1,
SNReachablityCheckerLocalWiFiConnectivity = 2
}SNReachablityCheckerType;###SNReachablityCheckerHostConnectivity
Returned this vaue if you created the instance of SNReachabilityChecker using reachabilityWithHostName:.###SNReachablityCheckerInternetConnectivity
Returned this vaue if you created the instance of SNReachabilityChecker using reachabilityForInternetConnection.###SNReachablityCheckerLocalWiFiConnectivity
Returned this vaue if you created the instance of SNReachabilityChecker using reachabilityForLocalWiFi.##SNReachablityCheckerStatus
typedef enum SNReachablityCheckerStatus_ {
SNReachablityCheckerNotReachable = 0,
SNReachablityCheckerReachableViaWiFi = 1,
SNReachablityCheckerReachableViaWWAN = 2
}SNReachablityCheckerStatus;###SNReachablityCheckerNotReachable
Returned this value when specified host or network is not reachable.###SNReachablityCheckerReachableViaWiFi
Returned this value when specified host or network is reachable using Wi-Fi.###SNReachablityCheckerReachableViaWWAN
Returned this value when specified host or network is reachable using WWAN.---
Notifications
======
SNReachablityChecker notifies it when network status changes.###SNReachablityDidChangeNotification
Posted when the network condition has been changed.
The object is an SNReachablityChecker object.---
Blog
=======
* [sonson.jp][]
Sorry, Japanese only....Dependency
=======
* none[sonson.jp]: http://sonson.jp