13 references to OSSupportsIPv6
Microsoft.Extensions.ServiceDiscovery.Dns (3)
Resolver\DnsResolver.cs (3)
117int len = (Socket.OSSupportsIPv4 ? 1 : 0) + (Socket.OSSupportsIPv6 ? 1 : 0); 121if (Socket.OSSupportsIPv6) // prefer IPv6 163else if (addressFamily == AddressFamily.InterNetworkV6 && Socket.OSSupportsIPv6)
System.Net.NetworkInformation (3)
System\Net\NetworkInformation\LinuxIPGlobalProperties.cs (3)
12Socket.OSSupportsIPv6 ? NetworkFiles.Tcp6ConnectionsFile : null); 18Socket.OSSupportsIPv6 ? NetworkFiles.Tcp6ConnectionsFile : null); 24Socket.OSSupportsIPv6 ? NetworkFiles.Udp6ConnectionsFile : null);
System.Net.Quic (1)
System\Net\Quic\Internal\MsQuicApi.cs (1)
84if (!Socket.OSSupportsIPv6)
System.Net.Sockets (5)
System\Net\Sockets\Socket.cs (2)
258public static bool SupportsIPv6 => OSSupportsIPv6; 263internal static bool OSSupportsIPv6DualMode => !OperatingSystem.IsWasi() && OSSupportsIPv6;
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
746attemptSocket = tempSocketIPv6 ??= (Socket.OSSupportsIPv6 ? new Socket(AddressFamily.InterNetworkV6, socketType, protocolType) : null);
System\Net\Sockets\TCPListener.cs (1)
255if (Socket.OSSupportsIPv6)
System\Net\Sockets\UDPClient.cs (1)
716if (Socket.OSSupportsIPv6)
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
883if (Socket.OSSupportsIPv6)