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.. :D
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With