Objective C 和点对点通信
我想构建 2 个应用程序:
1) iPhone 目标 c 应用程序。
2) Windows 可执行应用程序。
iPhone 应用程序和可执行应用程序都应该能够不时与远程服务器进行通信(例如每隔几分钟)。
现在,我还希望能够(在需要时)在 iPhone 应用程序和可执行应用程序之间直接通信。
我认为为了以这种方式进行沟通,我需要进行点对点沟通。
我说得对吗?有人可以指导我解决这个问题吗?是否已经有一个可以帮助我的现有示例?
I want to build 2 apps:
1) iPhone objective c app.
2) Windows executable app.
The iPhone app and the executable app should both be able to communicate from time to time with a remote server (every few minutes for example).
Now, I also want to be able (when needed) to communicate directly between the iPhone app and the executable application.
I assume that in order to communicate in such way, I will need to do peer-to-peer communication.
Am I right? can somebody direct me on this issue? Is there already an existing example that can help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 Bonjour 网络。它来自 Apple,非常适合点对点。它适用于 Windows
Look into Bonjour Networking. Its from Apple and is great for peer-to-peer. And it works with Windows
本教程在这里 http://mobileorchard.com/tutorial-networking-and-bonjour -在 iPhone 上/
是 bonjour 的一个很好的开胃菜。如果您使用的是 iOS 5,则必须自行升级代码。不过这并不是什么大问题,因为编译器会帮助你解决这个问题:)
This tutorial here http://mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/
is a great starter for bonjour. If you're working with iOS 5 though, you'll have to upgrade the code yourself. Not a big problem though since the compiler will help you with it :)