Question

Where is gethostbyaddr and netdb.h functions implemented? I can only find the header file where it is extern'ed (netdb.h)

Thanks

Was it helpful?

Solution

It is implemented in glibc.

BTW, use getnameinfo() and getaddrinfo(). gethostbyaddr() is obsolete, mostly because of IPv6.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top