Popularity
1.8
Declining
Activity
0.0
Stable
49
7
10

Code Quality Rank: L4
Programming language: Objective-C
License: MIT License
Tags: Networking    
Latest version: v1.0.1

CDZPinger alternatives and similar libraries

Based on the "Networking" category.
Alternatively, view CDZPinger alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of CDZPinger or a related project?

Add another 'Networking' Library

README

CDZPinger

Easy-to-use ICMP ping for iOS - just create a CDZPinger and you delegate gets a callback every second with the average ping time.

Installation

Add the dependency to your Podfile:

platform :ios
pod 'CDZPinger'
...

Run pod install to install the dependencies.

Usage

#import "CDZPinger.h" and:

CDZPinger *pinger = [[CDZPinger alloc] initWithHost:@"google.com"];
// keep a strong reference to pinger, maybe in a property somewhere

pinger.delegate = self;
// (assuming self is your CDZPingerDelegate)

In your delegate:

#pragma mark CDZPingerDelegate

- (void)pinger:(CDZPinger *)pinger didUpdateWithAverageSeconds:(NSTimeInterval)seconds
{
    NSLog([NSString stringWithFormat:@"Received ping; average time %.f ms", seconds*1000]);
}

Requirements

CDZPinger requires iOS 5.x+. It might work on iOS 4, but I haven't tested it.

There's also some chance it'll work on OS X, but again, I haven't tested it there either.

License

MIT License. See LICENSE for the full details.

Developer

Chris Dzombak, with ICMP ping code from Apple sample code.


*Note that all licence references and agreements mentioned in the CDZPinger README section above are relevant to that project's source code only.