How do i create a connection between my iPhone app with my mac app? [duplicate]

和自甴很熟 提交于 2019-12-23 06:11:09

问题


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?

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?


回答1:


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.

You could also roll your own connection mechanism but discovering will be quite an effort which is something that Bonjour solves for you.



来源:https://stackoverflow.com/questions/8610790/how-do-i-create-a-connection-between-my-iphone-app-with-my-mac-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!