Reachability Class always returns Reachable -


i'm using reachability class apples demo projects ping servers pages. no matter write in url reachableviawifi.

reachability* reachability = [reachability reachabilitywithhostname:url]; networkstatus netstatus = [reachability currentreachabilitystatus]; 

i'm connected wifi, want check if servers available or not. (with answer "no" if i'm disconnected net).

any suggestions please, others classes same goal.

thanks

from docs:

a remote host considered reachable when data packet, sent application network stack, can leave local device. reachability not guarantee data packet received host.

edit: so, if there route available (whether server listening or not), return route's quality, in case wifi.

how sending request , checking out result?

as question library: questions deemed off topic here.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -