Network/HostnameInfo: Replace family/socketType raw value by engine enumeration

Former-commit-id: 40adb7654b5a741c5fa12c1b866e3b427b1be5e9
This commit is contained in:
Lynix
2015-11-14 02:12:10 +01:00
parent 1b4ac70ac3
commit e8aa649cfc
10 changed files with 70 additions and 18 deletions

View File

@@ -57,10 +57,12 @@ namespace Nz
IpAddress hostnameAddress;
for (const HostnameInfo& result : results)
{
//TODO: Check PF_ type (TCP)
if (!result.address)
continue;
if (result.socketType != SocketType_TCP)
continue;
hostnameAddress = result.address;
break; //< Take first valid address
}