/android-netdiag

Network Diagnosis for Android

Primary LanguageJavaMIT LicenseMIT

Network Diagnosis for Android

@qiniu on weibo Software License Build Status Latest Stable Version

Summary

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

Install

gradle

compile 'com.qiniu:android-netdiag:0.1.1'

Usage

Ping

Ping.start("www.baidu.com", 10, new TestLogger(), new Ping.Callback() {
            @Override
            public void complete(Ping.Result r) {
                ...
            }
        });

TcpPing

TcpPing.start("www.baidu.com", new TestLogger(), new TcpPing.Callback() {
            @Override
            public void complete(TcpPing.Result r) {
                ...
            }
        });

All Unit Test

./gradlew connectedAndroidTest

Faq

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.