PingUtil is a simple ping util for iOS/macOS.
- Download PingUtil and try out the included Mac and iPhone example apps
PingUtil supports cocoapods for installing the library in a project.
pod 'XYPingUtil'
[PingUtil pingHost:@"google.com"
timeoutInterval:0.05
success:^(NSInteger delayMs) {
} failure:^{
}];