Latest 0.1.1
Homepage https://github.com/dongqihouse/QDNetDiagnostics
License MIT
Platforms ios 8.0
Frameworks CoreTelephony
Authors

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.

Latest podspec

{
    "name": "QDNetDiagnostics",
    "version": "0.1.1",
    "summary": "Net Diagnostics",
    "description": "Net Diagnostics",
    "homepage": "https://github.com/dongqihouse/QDNetDiagnostics",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "qd": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dongqihouse/QDNetDiagnostics.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "QDNetDiagnostics/Classes/**/*",
    "frameworks": "CoreTelephony",
    "libraries": "resolv"
}

Pin It on Pinterest

Share This