node name (may be null)
service name (may be null)
false: get the IPv4, true: get the IPv6 address
socket type (0 for any type)
socket protocol (0 for any protocol)
getaddrinfo() flags
0 on success or an error code on failure, see addrinfo.ErrorCode.
Gets the address info for an IP node and/or service.