문제

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