4 ms·
That makes no sense. Implementing libc and related libs literally means implementing their API. getaddrinfo() is a part of that. Also, getaddrinfo() is so elab
by the_biot 3y ago
That makes no sense. Implementing libc and related libs literally means implementing their API. getaddrinfo() is a part of that.
Also, getaddrinfo() is so elaborate because it handles a huge amount of networking layers. It's specifically broad and flexible because its predecessor (gethostbyname()) was not, and was found to be inadequate.
- LoganDark 3y ago> Implementing libc and related libs literally means implementing their API. getaddrinfo() is a part of that. I think you missed my point. getaddrinfo is implemented annoyingly and seems to rely on loopback networking to the same process for... some reason. Constant pain in the firewall because the port is randomized, so I have to allow the entire localhost. Which I don't like. A reimplementation would be exactly good.