Does iPhone support WiFi ad-hoc mode?

前端 未结 6 2160
别那么骄傲
别那么骄傲 2020-12-28 21:21

Does the iPhone support ad-hoc network mode? Can iPhones connect to one another without requiring an existing network? If so, how can I create an Ad Hoc network in my app?

6条回答
  •  佛祖请我去吃肉
    2020-12-28 22:26

    Ad Hoc networking is supported on all iOS devices, but you can not create an ad hoc network from within your application. From the list of available networks, choose the ad hoc network you want to connect to, click the arrow and choose connect automatically. Now, your device will automatically connect to this network whenever it comes within range. After this you can use the connection using regular sockets or any other networking API.

提交回复
热议问题