A tutorial on how to use CocoaAsyncSocket in Swift 2 and sending objects + using bonjour service
Setup: go to the folder in terminal and run "pod install" open the xcworkspace file.
See full tutorial and explanation of this project: http://swift2tutorials.blogspot.be/p/swift-2-cocoaasyncsocket-bonjour.html