Is there a way to programmatically check if IPv6 is installed / enabled on Windows using C ++? Either at the interface level, or in the system.
WSCEnumProtocols() can be used to check if IPv6 is installed as a protocol.
WSCEnumProtocols()
With a lot of networking features, the easiest way is to try to use it and catch exceptions if it doesn't work.
- GetAdapterAddresses() IPv6.
GetAdapterAddresses()
, XP ipv6 install , IPv6, , .
ipv6 install
,
const int sock6 = socket (AF_INET6, SOCK_DGRAM, 0); const BOOL is_ip6_enabled = (SOCKET_ERROR != sock6); close (sock6);
Source: https://habr.com/ru/post/1751570/More articles:Struts2 application gives blank pages while browsing - javaHow to redirect ANY AWTEvent in java? - javaWhat do I need to download to use MFC without Visual Studio? - c ++How to use UUID but remain compatible with existing database identifiers? - sqlMac OS X Window Server против X11: безумная задача - cocoaPuzzle Sort List - javaIs Azure Shared Access Signature suitable, can anyone access my blobs? - .netRead / write Nibbles (without bit fields) in C / C ++ - c ++What is the best denormalization practice in CQRS? - phpКогда использовать InterfaceBuilder для создания представлений? - objective-cAll Articles