Does IOS support simultaneous wifi and 3g/4g connections?

独自空忆成欢 提交于 2019-12-30 09:54:50

问题


I have a customer who has a device that has its own builtin wifi hot spot and he would like to connect it to an iPad 4G vie wifi and forward data at the same time through the cellular connection. Is this supported in IOS and if so can you point me to the appropriate documentation. Any suggestions are appreciated.

Jim


回答1:


Comparing to Android, iOS supports simultaneous work of multiple network adapters. It's necessary to write C code working with BSD sockets, doing enum, bind, and handling network interface changes.

By the way, it's ideologically very important to continue using that native BSD functionality in C/C++, otherwise, who knows, Apple may in 5-10 years remove support for BSD sockets completely :-)

Some C examples of how to do that you can find here: https://gist.github.com/avesus/fdb465b60a4f5204845c




回答2:


I've been looking for this answer myself and eventually found a solution here:

https://apple.stackexchange.com/questions/62870/how-do-i-tell-an-ios-device-theres-no-internet-connection-on-the-wifi

The solution does not involve any code but instead changing the settings on your iPad. Change the settings for the Wi-Fi connection to Static instead of DHCP. In the Static settings leave the Router field EMPTY. What I did was write down the IP Address, Subnet Mask, and DNS values that were being used by DHCP and then just left the Router field blank. I have found a couple of other posts that suggest entering 0 or 0.0.0.0 but leaving it blank was what made it work for me.



来源:https://stackoverflow.com/questions/18755051/does-ios-support-simultaneous-wifi-and-3g-4g-connections

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!