Home

Awesome

Network Diagnosis for iOS

@qiniu on weibo Software License Build Status Latest Stable Version Platform

中文

Summary

Network Diagnosis Library,support Ping/TcpPing/Rtmp/TraceRoute/DNS/external IP/external DNS。

Install

CocoaPods

pod "QNNetDiag"

Usage

Ping

@interface YourLogger : NSObject <QNNOutputDelegate>
...
@end

[QNNPing start:@"www.google.com" output:[[YourLogger alloc] init] complete:^(QNNPingResult* r) {
        ...
}];

TcpPing

[QNNTcpPing start:@"www.baidu.com" output:[[QNNTestLogger alloc] init] complete:^(QNNTcpPingResult* r) {
    ...
}];

Test

All Unit Test

$ xctool -workspace NetDiag.xcworkspace -scheme NetDiagTests build test -sdk iphonesimulator

Faq

Contributing

Please Look atContributing Guide

Contributors

Contact us

License

The MIT License (MIT). License.