Question

I've been looking for ways to send files (small sound recorded on the iphone) over TCP to a server and from the server to other devices. It seems like the easiest way to do so would be using the CocoaAsyncSocket project. (Is it true?)

However, while I could find many examples on how to use it, I couldn't find a single explanation on how to install it.

I'm relatively new to iOS and Xcode and quite lost in that. Could someone please explain to me how to get the library? (I know how to add a library to my project, however I only found download for the .m files thru the gitHub)

Thanks

Was it helpful?

Solution

This library comes with a header file (either AsyncSocket.h or GCDAsyncSocket.h) and an implement file (either AsyncSocket.m or GCDAsyncSocket.m). All you need is to copy the .h and .m in your project. And using the #import statement to include the AsyncSocket or GCDAsyncSocket class in your class to use it. The library as you downloaded is not in a static library or framework compiled format. If you go thru the examples from the same author, you will see how it was done.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top