Changed to ipv6

replaced all instances of AF_INET with AF_INET6