views:

25

answers:

1

my question is -- how to check various types of internet connections available for device....

i mean if i want my application send an internet request only if wi-fi is available...and not in other cases like gprs ,WAP,3g..etc....

please also give information about checking speed of a particular connection...

please correct me if i am wrong to ask this question.... thank you

+2  A: 

Use Apple's Reachability class to check for Wifi or WAN. Use this example and code: http://developer.apple.com/library/ios/#samplecode/Reachability/index.html

Checking the speed is more difficult, you would need to measure it by your own I think, maybe the best way is to ping and measure the response latency.

mgratzer