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

Thanks

有帮助吗?

解决方案

It is implemented in glibc.

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top