Giter Site home page Giter Site logo

Comments (6)

dustturtle avatar dustturtle commented on August 30, 2024

可能是偶现的ping失败

from realreachability.

djlycit avatar djlycit commented on August 30, 2024

/// Please make sure this host is available for pinging! default host:www.baidu.com
@Property (nonatomic, copy) NSString *hostForPing;
default host改为了www.apple.com,日志却没有改,其实API本身默认就是www.apple.com,但是有个问题,国内访问就很不稳定

from realreachability.

JohnSZ666 avatar JohnSZ666 commented on August 30, 2024

您好,有个问题请教一下:我直接下载的最新demo,然后将最新的RealReachability文件夹集成到我的项目中,但是一楼的问题还是有,我在 appdelegate.m 中添加的检测网络状况变化的通知,测试环境是:真机测试,iphone6Plus,ios9.2.
测试流程是:第一次是wifi状态,然后断网,接着连接wifi,换成4G,接着断网,最后换成4G,curStateID输出结果如下:

2016-08-16 16:32:04.969 YQVehicleLoan[23319:5381539] curStateID is 3
2016-08-16 16:32:05.003 YQVehicleLoan[23319:5381539] curStateID is 3
2016-08-16 16:32:05.004 YQVehicleLoan[23319:5381539] curStateID is 3
2016-08-16 16:32:15.642 YQVehicleLoan[23319:5381539] curStateID is 2
2016-08-16 16:32:17.205 YQVehicleLoan[23319:5381539] curStateID is 2
2016-08-16 16:32:24.615 YQVehicleLoan[23319:5381539] curStateID is 3
2016-08-16 16:32:24.807 YQVehicleLoan[23319:5381539] curStateID is 3
2016-08-16 16:32:28.871 YQVehicleLoan[23319:5381539] curStateID is 4
2016-08-16 16:32:30.657 YQVehicleLoan[23319:5381539] curStateID is 2
2016-08-16 16:32:30.657 YQVehicleLoan[23319:5381539] curStateID is 2
2016-08-16 16:34:17.613 YQVehicleLoan[23319:5381539] curStateID is 2
2016-08-16 16:35:52.653 YQVehicleLoan[23319:5381539] curStateID is 2
2016-08-16 16:36:02.214 YQVehicleLoan[23319:5381539] curStateID is 4
2016-08-16 16:36:04.218 YQVehicleLoan[23319:5381539] curStateID is 2
这是为什么呢?导入的RealReachability文件夹是最新的吧?还是需要用cocoapod导入才是最新的版本啊?麻烦帮忙看看,谢谢了。

from realreachability.

dustturtle avatar dustturtle commented on August 30, 2024

这个我感觉可能是数据网络质量比较差造成了ping失败导致的现象。如果不需要检测弱网络可以用
pod 'RealReachability/Connection' 检测本地连接状态 @kanshaoting

from realreachability.

JohnSZ666 avatar JohnSZ666 commented on August 30, 2024

好的,谢谢您的回答。

from realreachability.

dustturtle avatar dustturtle commented on August 30, 2024

master上的最新版本引入了double check机制,可以设置两个ping地址,通过双地址+重试来保证可靠性,欢迎体验,谢谢~

from realreachability.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.