Update network reachability code to extend features

Originator:propstm
Number:rdar://13982938 Date Originated:24-May-2013
Status:Open Resolved:
Product:Sample Code Product Version:
Classification: Reproducible:Always
 
Summary: Apple provided reachability code (http://developer.apple.com/library/ios/#samplecode/Reachability)  was last updated to support iOS4.0.  iOS now allows many more capabilities to developers since iOS4.0 and while this code is Apple provided as way of testing reachability it should be expanded to include results other than having or not having a connection.

Steps to Reproduce: 
Go to http://developer.apple.com/library/ios/#samplecode/Reachability 
Click Download Sample Code

Expected Results:  It would be useful to first have an official Apple code sample for reachability with ARC.  Also since the network link conditioner is available to developers on the device in iOS6, it would be useful to be able to code against those varying connection types.  For example, if the reachability code sent notifications if varying percentages of packets were dropped.

Actual Results:
I can set a custom profile in network link conditioner that would drop 100% of packets sent, and the reachability code in the sample app does not change it's result.  It still tells me I have a connection even though no packets get through.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!