Network Diagnosis for iOS
Clone or download
Latest commit 37c6edb Jul 25, 2018
Permalink
Failed to load latest commit information.
NetDiag.xcodeproj enable bitcode Jul 25, 2018
NetDiag.xcworkspace test pass Feb 17, 2016
NetDiag format Feb 22, 2018
NetDiagTests fix tranvis Mar 29, 2018
.clang-format README Feb 17, 2016
.gitignore fix tranvis Mar 29, 2018
.travis.yml fix tranvis Mar 29, 2018
CHANGELOG.md format Feb 22, 2018
Contributing.md README Feb 17, 2016
LICENSE Initial commit Dec 26, 2015
Podfile fix tranvis Mar 29, 2018
QNNetDiag.podspec format Feb 22, 2018
README.md add 中文 Feb 22, 2016
README_cn.md english readme Feb 22, 2016
clang-format add clang format Feb 22, 2018
format.sh format Feb 22, 2018

README.md

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

  • If there are any compile errors, please look at Cocoapods's troubleshooting

Contributing

Please Look atContributing Guide

Contributors

Contact us

  • If you find any bug, please submit issue
  • If you need any feature, please submit issue
  • If you want to contribute, please submit pull request

License

The MIT License (MIT). License.