using getaddrinfo
working ipv6
tweaks
fixing udp logic