GCNetworkReachability icon indicating copy to clipboard operation
GCNetworkReachability copied to clipboard

IPv6 support

Open JanC opened this issue 10 years ago • 1 comments

Hi, does this actually work on IPv6? I see that you use a sockaddr_in instead of sockaddr_in6 in GCNetworkReachabilitySetSocketAddress

The IPv4 structs should not be used based on what Apple said in WWDC (session "Your App and Next Generation Networks")

ipv6

JanC avatar Aug 12 '15 09:08 JanC

You are right, there is a bug here if trying to monitor an ipv6 address, as inet_pton() requires allocating more space in that case.

But as GCNetworkReachability is a dead project...

Coeur avatar Feb 16 '16 08:02 Coeur