3 ms·
Well but the portable API is too low-level and error prone. What is the last time you used getaddrinfo? How often do you actually need to use it? One can make
by kccqzy 2y ago
Well but the portable API is too low-level and error prone. What is the last time you used getaddrinfo? How often do you actually need to use it?
One can make a good technical argument based on the merit of the portable API without immediately resorting to the EEE argument.
- o11c 2y agogetaddrinfo isn't its predecessors, there's nothing error-prone about it. The only thing that's nontrivial is falling back if the first server is unresponsive, and even there the obvious calling code is fine for almost all apps.