All Projects → qiniu → Ios Netdiag

qiniu / Ios Netdiag

Licence: mit
Network Diagnosis for iOS

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].