Apple Reachability sample code
Make Reachability compile on OSX