IPv6 connectivity test in C++
问题 Is there any C++ function to test whether the computer on which my program is running supports IPv6 connectivity? I need to know something like result of this page http://test-ipv6.com/, but in C++. EDIT: I was trying to use getifaddrs() . But return value can be AF_INET6 found , because I really have IPv6 address set, but IPv6 connectivity does not work (probably because ISP). So is there some way how to check if IPv6 connectivity works indeed? 回答1: All modern operating systems support IPv6,