netdb.h and gethostbyname function, does it work when called from an app?
Hi all,
while in the process of integrating some open source libraries that try to use the "gethostbyname/gethostbyname_r" function located in "..\innovaphone\sdk\app-platform-libs\8\x86_64\usr\include\netdb.h", the following problem arises: The libraries included try to connect to another system and fetch some data, doing this by handing over an ip address works fine. Trying the same with the name of the machine returns only empty string/nullptr if calling "gethostbyname/gethostbyname_r" function (These calls are located within the libraries). So the questions are: Does gethostbyname work at all? Has anyone had any experience with this?
Kind regards
Mladen