To run the example project, clone the repo, and run pod install from the Example directory first.
QDNetDiagnostics is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'QDNetDiagnostics'依赖
CoreTelephony.framework
libresolv.tbd// device info ping and traceroute
self.netDiagnostics = [[QDNetDiagnostics alloc] initWithHostName:@"www.suning.com"];
[self.netDiagnostics startDiagnosticAndNetInfo:^(NSString *info) {
NSLog(@"%@",info);
}];
// ping
// [self.netDiagnostics startPingAndCallback:^(NSString *info) {
// NSLog(@"%@",info);
// }];
//traceroute
// [self.netDiagnostics startTracerouteAndCallback:^(NSString *info) {
// NSLog(@"%@",info);
// }];- 18.9.17 1 optimize code 2 add ping and traceroute api in QDNetDiagnostics
244514311@qq.com, 244514311@qq.com
QDNetDiagnostics is available under the MIT license. See the LICENSE file for more info.

