Its quite difficult to change the Apple.Developer Witap application, because you need to keep all allowed addresses, change all methods and process the lot.
I think this tutorial will reach your goal.
The application is called " Chatty ". Its source code is here.
Download the App --> Open --> Click-on Chatti project tab --> Build Settings --> Change the base SDK to iOS6
it is issued under the MIT license , which means that you are free to modify and reuse
In this lesson, they are going to learn the chat application for the iPhone. It allows you to host your chat room and advertise it on your local network. (in this case, your application acts as a "chat server"), or you can find and join chats posted by other people on your network (acting as a "chat" client). Both the announcement and the opening of chats are implemented using the Apples Bonjour protocol , the same as the Witap Application
Now I answer your questions
Is it possible to connect more than one device via WiFi?
Yes, you can
If so, what is the maximum number of devices that can be connected in the same template?
I think you can combine with any number of devices
What type of CFSocket is useful for multiple connections (TCP / UDP)?
My suggestion is TCP
The remaining answers to your questions can be easily understood from the Chatty sample application :)
Note The server and clients must be on the same WiFi network.
source share