2 ms·
> if you're writing code, you'll be either manually specifying the IP address family (so there's no real IPv6 risk) AF_ANY is a thing, and it’s a best practice
by znpy 4y ago
> if you're writing code, you'll be either manually specifying the IP address family (so there's no real IPv6 risk)
AF_ANY is a thing, and it’s a best practice.
gethostaddr (iirc) was the old interface, but nowadays getaddrinfo is almost the default and supports AF_ANY.