wifi - iPhone: Reachability for wireless where actual internet is not needed -
Anyone have an idea of how I can check the WiFi connection where I need to connect to the Internet is not? I have implemented Wifi multiplayer in a game from which I am working, so I have to make sure that the user should know that there is no connection when he is trying to use that mode. Availability sample code only works for situations where you have a host on which you are trying to route. Since I do not have any knowledge of how other people's WiFi will be installed, I should be able to check wifi without trying a route to a specific location.
EDIT: Never mind, I got it. Just dig more in the reheability code.
You can check that you reach the access point (which is almost always the iPhone's gateway, Internet or Will not done). With the route for the Internet 802.11 B / G / N and the internet will be seen similar to the phone or any device without the route.
I should ask the phone for an entrance gate and try to talk to it (ping, maybe?) But I am unfamiliar with the attitude of rehebibility if in fact you have understood it, Would love to see the answer.
Comments
Post a Comment