使用 QtMobility 检测漫游(切换接入点)?
我需要编写一个应用程序,如果我连接到 WLAN,它可以检测从一个接入点到另一个接入点的漫游。不幸的是,我找不到任何可以为我检测漫游的东西。我所能找到的只是 Bearer API 中的一些解释。一句话说道:
第二种漫游形式是指 为强制漫游。系统 只需更改链路层而无需 咨询应用程序。起来了 到应用程序来检测某些 其内部插座可能已成为 无效。
由于我不是网络人员,所以我不知道如何跟踪漫游。只要知道设备从一个接入点切换到另一个接入点就足够了。
也许你们中的任何人都可以帮我解决这个问题?
多谢!
I need to write an application, that detects roaming from one access point to another if I'm connected to WLAN. Unfortunately I couldn't find anything that detects roaming for me. All I could find are some explanations in the Bearer API. One sentence says:
The second form of roaming is referred
to as Forced Roaming. The system
simply changes the link layer without
consulting the application. It is up
to the application to detect that some
of its internal socket may have become
invalid.
Since I'm not a network guy I don't have any idea how I could track roaming. It would be enough to know, that the device switched from one access point to another.
Maybe anybody of you can help me out on that?
Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信这正是您所需要的:
http://doc.qt.nokia.com/qtmobility-1.0/ qnetworksession.html#newConfigurationActivated
I believe this is exactly the thing you need:
http://doc.qt.nokia.com/qtmobility-1.0/qnetworksession.html#newConfigurationActivated
查看 RConnectionMonitor 和 MConnectionMonitorObserver 类。
它们允许您的代码在连接发生变化时收到通知
Check out RConnectionMonitor and MConnectionMonitorObserver classes.
THey allow your code to get notified when connections change