Final commit of some WIP work, parking the project for the moment until i have time to work on this properly

Signed-off-by: Jak Barnes <contact@jakbarnes.co.uk>
This commit is contained in:
Jak Barnes 2019-04-20 12:39:06 +01:00
commit 0464a8aaf4

View file

@ -71,7 +71,8 @@ void test_resolve_host()
const char * address = "localhost";
const char * port = "80";
AddressInformation *addr = AllocAddressList(3);
int count = ResolveHost(address, port, addr);
int count = ResolveHost(address, port, ADDRESS_TYPE_IPV4, 0, addr);
assert(GetAddressFamily(addr[0]) == ADDRESS_TYPE_IPV6);
assert(GetAddressFamily(addr[1]) == ADDRESS_TYPE_IPV4);
assert(GetAddressSocketType(addr[0]) == 0);