开发者

How to get the internet connection speed with objective c in mac os sdk

I need to get the intern开发者_Python百科et connection speed for the connected internet connection with objective c in Mac OS Application.


There's no "formal" way to do this. Also note that in practice "internet connection speed" makes very little sense. You probably mean "max bandwidth to your nearest gateway", but in a more general fashion it doesn't make much sense (think router with several network interfaces for instance).

Anyway, you won't find any API to do this. You're better off just optimizing for the "worst case scenario", and it will just go faster if the user has more bandwidth.

Also note that you might be able to tell if the iOS device is on WiFi or 3G though.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜