如何在iPhone应用程序和Mac应用程序之间建立连接? [英] How do i create a connection between my iPhone app with my mac app?
问题描述
可能重复:
iPhone与手机之间的Ad hoc Wifi连接Mac-可以吗?
通过wifi将iOS应用连接到Mac应用?类似于iTunes Remote?
Possible Duplicate:
Ad Hoc Wifi Connection Between iPhone & Mac - Possible?
How can I create a small Mac app that receives data over the WiFi network from an iOS app?
Connect iOS app to Mac app over wifi? Similar to iTunes Remote?
我想通过wifi在iPhone应用程序和mac应用程序之间建立连接.有什么方法可以做到这一点?是否有任何开源项目可以解决这个问题?
I want to create a connection between my iPhone app and my mac app over wifi. What ways are there of doing this? Are there any open source projects which work on this?
推荐答案
您可以使用Bonjour.这里似乎有一些不错的信息- http://mobileorchard.com/tutorial -networking-and-bonjour-on-iphone/-但苹果文档也可能是一个不错的起点.
You could use Bonjour. There appears to be some decent information here - http://mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/ - but also the Apple docs are probably a good place to start.
您也可以使用自己的连接机制,但是发现将是一项艰巨的工作,这是Bonjour可以为您解决的问题.
You could also roll your own connection mechanism but discovering will be quite an effort which is something that Bonjour solves for you.
这篇关于如何在iPhone应用程序和Mac应用程序之间建立连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!