-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open getaddrinfo for public use #350
Conversation
Exposes quite a lot of implementation detail... unless this is only for test code, maybe it might be better to put a |
Thanks, @garethsb, we want it to be opened, so it is not for test code. I was thinking the same, but not sure whether to bring it into |
@lo-simon depending on use case, would nmos-cpp/Development/cpprest/host_utils.cpp Line 313 in f7bd2f7
|
Using the |
Hmm, that is surprising, I thought it should use the system resolver that would use resolv.conf if configured correctly. |
As discussed earlier today, it would be good to have a clear, demonstrated, use case, where using DNSServiceGetAddrInfo produces the required result but POSIX If that is the case, this revised PR looks nice. Just a couple of questions:
|
… to use the host_addresses function
The function wrapped the
As it is already passing the |
Open the
getaddrinfo
for public use. It is a beneficial function which can look up IP address from the hostname.