Pregunta

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

Thanks

¿Fue útil?

Solución

It is implemented in glibc.

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top