使用时Reachability.h
——苹果在 iOS 上处理连接的代码:
+ (Reachability*) reachabilityWithAddress: (const struct sockaddr_in*) hostAddress;
我收到以下警告:
Declaration of 'struct sockaddr_in' will not be visible outside of this function
使用时Reachability.h
——苹果在 iOS 上处理连接的代码:
+ (Reachability*) reachabilityWithAddress: (const struct sockaddr_in*) hostAddress;
我收到以下警告:
Declaration of 'struct sockaddr_in' will not be visible outside of this function