QDNetDiagnostics 0.1.1

QDNetDiagnostics 0.1.1

Maintained by qidong.



  • By
  • qd

QDNetDiagnostics

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

QDNetDiagnostics is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'QDNetDiagnostics'

Manual Installation

依赖

CoreTelephony.framework
libresolv.tbd

Usage

// 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);
//    }];

Update

  • 18.9.17 1 optimize code 2 add ping and traceroute api in QDNetDiagnostics

Result

结果

UML

结果

Author

[email protected], [email protected]

License

QDNetDiagnostics is available under the MIT license. See the LICENSE file for more info.