How to check for local Wi-Fi (not just cellular connection) using iPhone SDK?
- by Michael
I'm currently using the following to check whether Wi-Fi is available for my application:
#import <SystemConfiguration/SystemConfiguration.h>
static inline BOOL addressReachable(const struct sockaddr_in *hostAddress);
BOOL localWiFiAvailable()
{
struct sockaddr_in localWifiAddress;
bzero(&localWifiAddress,…