connecting an iOS app to adhoc wifi network

I have an adhoc wifi network setup via a WiFly module. I was wondering how I could connecting an iOS device to this network. Right now I am using the CFStream api. I found a tutorial which used this:

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

To connect to a server. However I don't want to have a server I just want to communicate with my WiFly module to the iOS device via a server. Just direct communication over the adhoc network. How can I do this?

Thanks

链接地址: http://www.djcxy.com/p/63450.html

上一篇: Android:wifi和蓝牙一起搜索

下一篇: 将iOS应用程序连接到adhoc wifi网络