CFNetwork and Bonjour integration for iPhone to Mac integration

后端 未结 2 499
小鲜肉
小鲜肉 2020-11-28 18:51

I want to use CFNetwork and Bonjour in conjunction to be able to have communications between my iPhone app and a Mac app. The app on the iPhone would have one button. Then o

相关标签:
2条回答
  • 2020-11-28 19:39

    Bill Dudney created a sample iPhone Bonjour application to demonstrate how to use Bonjour to discover and connect to two iPhones. I ported this example to the Mac to demonstrate how to do Bonjour discovery between the two platforms. Bill also provides a nice writeup of how he put together the Bonjour wrapper used in this example.

    This is a very simple example, and with the Mac and iPhone clients it does something similar to what you want. Only minor modifications should be needed.

    I show this in action in the video for the Networking session of my Advanced iPhone Development course on iTunes U.

    0 讨论(0)
  • 2020-11-28 19:39

    Here i have created some simple sample application which exchange the data between iPhone and iMAC.

    https://github.com/boobalaninfo/Bonjour-iOS-MAC-Apps

    0 讨论(0)
提交回复
热议问题