Commit e7328314 authored by Joseph Noir's avatar Joseph Noir

Remove pragma linking, clearify todo

parent c269e25a
......@@ -43,10 +43,6 @@
# include <sys/ioctl.h>
#endif
#ifdef CAF_WINDOWS
# pragma comment(lib, "IPHLPAPI.lib")
#endif
#ifndef HOST_NAME_MAX
# define HOST_NAME_MAX 255
#endif
......@@ -173,7 +169,9 @@ std::vector<ip_address> local_addresses(string_view host) {
CAF_LOG_ERROR("malloc failed");
return {};
}
// TODO: The API example propopses to try three times.
// TODO: The Microsoft WIN32 API example propopses to try three times, other
// examples online just perform the call once. If we notice the call to be
// unreliable, we might adapt that behavior.
err = GetAdaptersAddresses(AF_UNSPEC, GAA_FLAG_INCLUDE_PREFIX, nullptr,
adapters.get(), &len);
if (err != ERROR_SUCCESS) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment