Hi, I'm trying to implement DNS resolution for iOS...
# multiplatform
s
Hi, I'm trying to implement DNS resolution for iOS and I have come to a point where I'm inspecting the sa_family field from sockaddr, which is a UByte. The idea is to compare it against AF_INET and AF_INET6 to cherrypick addresses depending on requirements, but both of these are Ints. I am struggling to understand what's up with this. Is it intended/correct? If so, why?