我在 iPad 上开发 bonjour 时遇到了一个奇怪的问题。
要求是这样的:
a).I write the bonjour server on Mac and it works fine.
And iPad will conntect with this service by Wi-Fi.
This Wi-Fi network is created by this Mac(Internet sharing).
Thus once iPad joined into this Wi-Fi network, the bonjour browser
program(which run in iPad) will find the service.
步骤:
a).firstly I am sure that this client program works fine.
It could find the serivce.
b).But I want to make this program are stable under any condition. So I take a detail
test.
c).One of the testcase is:
1). The client program already run on iPad, and could find the service.
2). Then, I make "WLAN off" in setting item(I close the connect from iPad).
3). Then, I make "WLAN on" and select the same Wi-Fi network.
问题来了:
a). I find, the cilent program find the bonjour service sometimes take
so long time(max time even 7 minutes),sometimes several seconds.
b). And this is only happened under the condition whhich WI-FI created
as "Internet sharing from Mac". If I create the Wi-Fi as
"None Internet share", I could always found the bonjoure service
within about 20 seconds.
那么,“Wi-Fi 没有互联网共享和互联网共享(我知道 iPad 可以通过 Mac 的互联网共享上网”)有什么区别?
如何爱它?