Use 3g for internet when connecting to adhoc wifi (using private APIs)

First of all, I am looking for a resource to use the Private API . This is an enterprise application and will never go to the application store . I need to take as many configurations as possible from the hands of users.

In this case, I have a device with which the ipad will connect and communicate via the adhoc wifi network supplied by the device. The ipad connects to this device and sends raw data through socket connections. I also need to connect to the Internet to synchronize data.

In 80% of cases, the ipad will be connected to this adhoc wifi device. The management software on the ipad does not allow the user to configure wifi settings, so I try to make sure that I am connected to my device without restricting synchronization with the server. I know that I can define a connection using the Reachability class of apples, this is not what I am looking for. I need to use bot 3g and wifi.

Is there a way to provide this in code? Or is there a resource for a private API that I can find to find a way?

This will be in iOS 5, and the most preferred method would be to simply redirect my HTTP requests through some kind of private api method to use 3G and allow socket requests to use Wi-Fi for the adhoc device.

code samples would be awesome, class references / names for research would be greatly appreciated.

and again this is not part of the application store, this is a corporate application

+7
source share
1 answer

the resolution found was to assign ip in the private assigned ip range that ipad uses (169.254.xx) for the adhoc device, and then let ipad detect ip. Then see if I can open the socket connection to the device (to determine if it is available), and then print.

Following this route, I can still use 3G data, as well as communicate with the device via Wi-Fi.

+2
source

All Articles