检测蜂窝网络与 802.11 和以太网的连接和速度? C# .Net
我正在开发一个程序,该程序将在可能具有 3G 连接的移动设备(完整 Windows 安装)上使用。 如果特定设备确实具有 3G 连接,我们希望利用它。 但是,程序应该能够根据当前可用的连接类型和速度确定通信的优先级。
我可以使用 System.Net.NetworkInformation.NetworkInterface 获取网络接口列表,但是有什么好方法可以查看该接口是蜂窝数据、无线还是常规以太网以及可用速度(特别是在细胞数据的情况)?
I am working on a program which will be used on mobile devices (Full Windows install) that may have 3G connectivity. If the particular device does have 3G connectivity, we would like to take advantage of it. However, the program should be able to prioritize communication based on what type of connection and speed are currently available.
I am able to get a list of the network interfaces using System.Net.NetworkInformation.NetworkInterface, but is there any good way to see if the interface is cell data, wireless, or regular ethernet as well as the available speed (particularly in the case of cell data)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这将列出当前启动的所有网络连接。 它应该是一个起点。
This will list all of the network connections that are currently up. It should be a place to start.