https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

stoyicker

11/25/2023, 8:50 PM
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?
2 Views