[英]WiFi iPhone Application
im working on an iPhone application which requires communication between 2 devices through WiFi.我正在开发一个需要通过 WiFi 在 2 个设备之间进行通信的 iPhone 应用程序。
Can somebody please help me by providing a simple iphone application code for the same which is able to communicate data between the devices...i hv gone through the " witap application " available on the developers site but wasnt able to understand it...有人可以通过提供一个简单的 iphone 应用程序代码来帮助我,它能够在设备之间通信数据...我已经通过开发人员网站上提供的“ witap 应用程序”但无法理解它...
please help..请帮忙..
Use the Bonjour, let Device A as the server, and publish service via Bonjour;使用Bonjour,让Device A作为服务器,通过Bonjour发布服务; and in Device B,use the NSNetServiceBrowser to search the published service via device A in the same local network,and connect by socket to send data.
在设备B中,使用NSNetServiceBrowser在同一个本地网络中通过设备A搜索已发布的服务,并通过socket连接发送数据。
there is a demo here.这里有一个演示。 download .And you can read this article go>> .It helped me before.
下载。你可以阅读这篇文章去>> 。它以前帮助过我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.