iPhoneOS4.0 Wifi扫描问题

发布于 2024-09-14 12:56:51 字数 925 浏览 2 评论 0原文

我刚刚开始制作 iPhone Wifi 扫描应用程序。我搜索了很多网站,最后我得到了下面的最新代码。有人说这对于 iPhoneOS4.0 来说效果很好。

libHandle = dlopen("/System/Library/SystemConfiguration/WiFiManager.bundle/WiFiManager", RTLD_LAZY);

open  = dlsym(libHandle, "Apple80211Open");

bind  = dlsym(libHandle, "Apple80211BindToInterface");

close = dlsym(libHandle, "Apple80211Close");

scan  = dlsym(libHandle, "Apple80211Scan");

但是,我有以下警告。

warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.0.1/Symbols/usr/lib/libpcap.A.dylib" (file not found).

warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.0.1/Symbols/System/Library/SystemConfiguration/WiFiManager.bundle/WiFiManager" (file not found).

我正在使用 xcode_3.2.3_and_ios_sdk_4.0.1 和已越狱、解锁并更新到 4.0.1 的 iPhone 3G 设备。

我知道,如果我使用私有 API,无法提供服务并会带来风险,但我应该这样做。 如果您对此有任何线索,请告诉我。

I have just started to make a iPhone Wifi scanning app. I have searched a lot websites, finally I have the recent code the below. Someone told this is working for iPhoneOS4.0 well.

libHandle = dlopen("/System/Library/SystemConfiguration/WiFiManager.bundle/WiFiManager", RTLD_LAZY);

open  = dlsym(libHandle, "Apple80211Open");

bind  = dlsym(libHandle, "Apple80211BindToInterface");

close = dlsym(libHandle, "Apple80211Close");

scan  = dlsym(libHandle, "Apple80211Scan");

But, I have the below warnings.

warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.0.1/Symbols/usr/lib/libpcap.A.dylib" (file not found).

warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.0.1/Symbols/System/Library/SystemConfiguration/WiFiManager.bundle/WiFiManager" (file not found).

I am using xcode_3.2.3_and_ios_sdk_4.0.1 and iPhone 3G device that jailbroken, unlocked and updated to 4.0.1.

I know, if I use a private API, can not service and get a risks, but I should do that.
If you any clue about this, please let me know.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文