I frequently mention libraries for communicating with web services, and most recently have mentioned a library for communicating with web services created to fill the void created by the no-longer officially supported ASIHTTPRequest library, and an Objective-C implementation of the WebSockets protocol.
Recently I stumbled across a couple other excellent communication libraries, one providing an excellent easy to use HTTP server embedabble within iOS apps and the other providing native Objective-C asynchronous TCP and UDP socket libraries.
The libraries are from Robbie Hanson, and are CocoaHTTPServer, and CocoaAsyncSocket.
CocoaHTTPServer provides a lightweight HTTP server which is great if you want to embed a simple HTTP server within your apps to add something such as file sharing.
You can find CocoaHTTPServer on Github here.
CocoaAsyncSocket provides a very nice library for using TCP and UDP sockets that is fully GCD based – great so you don’t have to mess around with any low level communication libraries.
You can find CocoaAsyncSocket on Github here.
Two very useful libraries to bookmark that I can’t believe I didn’t find earlier!
©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.
.






