Cocoa AsyncSocket and Bonjour
I recently ran into a point in the development of SimpleTask where I needed to have the iPhone version of the app communicate with the desktop version so that they can sync. The obvious choice for doing so in an efficient manner was Apple’s Bonjour as at this point in the development, a web server is out of the question for syncing data. Networking code for Bonjour can be pretty messy, especially if it is your first time as it was mine. Thankfully, I came across Cocoa AsyncSocket, “a TCP/IP socket networking library that wraps CFSocket and CFStream.” Or in other words, it made it a lot easier to get these two devices communicating. I just wanted to give a big thanks to the developer this project.