我想从iOS应用测试连接路由器(wifi调制解调器)的速度。iOS获取链路速度(路由器速度测试)
我发现这里的东西Get link speed programmatically?但未能发现sockios.h和ethtool.h
是否有可能端口此代码的Objective-C或有另一种方式?
-
对不起失踪的信息,我的英语很差。
我想测试ios设备和连接的wifi调制解调器之间的链路速度(tx速率)。
CWInterface类中有一个名为txRate的属性。我想在Cocoa Touch中获取这些数据。
/*!
* @property
* @abstract Current transmit rate (Mbps) of the CoreWLAN interface.
* @discussion Dynamically queries the interface for the current transmit rate.
*/
@property(readonly) NSNumber *txRate NS_DEPRECATED_MAC(10_6, 10_7);
我无法编译你已经发布了'+(double)getRouterLinkSpeed'的Xcode代码。 你能发表需要包含的标题吗? – user3355123
#include #include –
suleymancalik
谢谢suleyman !!你是我的英雄!! – user3355123