Connect your iOS app to adhoc wifi network

I have adhoc wifi network setup via WiFly module. I was wondering how I can connect an iOS device to this network. Now I am using api CFStream. I found a tutorial that used this:

CFStreamCreatePairWithSocketToHost(NULL, (CFStringRef)@"localhost", 80, &readStream, &writeStream); 

Connection to the server. However, I do not want to have a server with which I just want to communicate with my WiFly module on the iOS device through the server. Just a direct adhoc connection. How can i do this?

thanks

+4
source share

Source: https://habr.com/ru/post/1444485/


All Articles