When using Reachability.h — Apple’s code to deal with connections on iOS:
+ (Reachability*) reachabilityWithAddress: (const struct sockaddr_in*) hostAddress;
I am getting the following warning:
Declaration of 'struct sockaddr_in' will not be visible outside of this function
Add
#import <netinet/in.h>in Reachability.h file and this warning will be gone.. 😀