问题
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