iPhone OS Reference Library Apple Developer Connection spyglass button

Version: 2.0

Posted: 2009-08-09

Build Requirements: Mac OS X 10.5.3, Xcode 3.1, iPhone OS 3.0

Runtime Requirements: Mac OS X 10.5.3, iPhone OS 3.0

View Source Code:

Download Sample Code (“Reachability.zip”, 38.8K)



Description

The Reachability sample application demonstrates how to use the SystemConfiguration framework to monitor the network state of an iPhone or iPod touch. In particular, it demonstrates how to know when IP can be routed and when traffic will be routed through a Wireless Wide Area Network (WWAN) interface such as EDGE or 3G.

Document Revision History

Date Notes
2009-08-09Simplified interface code, rewrote Reachability object to easily support monitoring multiple hosts, added code to track whether a connection will be required, and made sample fully asynchronous.
2008-07-03First public release.
Did this document help you? Yes It's good, but... Not helpful...