2016-04-18 109 views
0

情况:沙漠上的两个IOS设备,没有网络,但我想用设备的无线或接入点将设备连接到彼此。这些设备如何连接并开始相互通信。需要连接设备使用WiFi,但没有互联网

+0

查看这些链接 [https://developer.apple.com/library/ios/documentation/MultipeerConnectivity/Reference/MultipeerConnectivityFramework/index.html](https://developer.apple.com/library/ios/documentation /MultipeerConnectivity/Reference/MultipeerConnectivityFramework/index.html) [https://www.ralfebert.de/tutorials/ios-swift-multipeer-connectivity](https://www.ralfebert.de/tutorials/ios-swift -multipeer-connectivity /) [http://nshipster.com/multipeer-connectivity](http://nshipster.com/multipeer-connectivity/) – Sudhir

+0

连接2台设备的目的是什么?请描述目的。 – Hasya

+0

我见过Multipeer框架,但我的目的不同,我需要连接设备与他们的WiFi。在multipeer框架中,我猜想如果连接到相同的wifi,那么两个设备连接 – bhcool1690

回答

0

设备可以启动热点,而另一个设备可以连接到热点。

+0

可以通过代码完成吗?如果您有任何问题链接或示例代码。请让我知道 – bhcool1690

+0

A作为服务器,B作为客户端。然后使用AsyncSocket编写TCP/IP通信。我只写了客户端。 –

+0

,但它会使移动设备之外的服务器。我认为它使用网络(互联网)来沟通“A”服务器。 – bhcool1690

相关问题