481 references to AddressFamily
Aspire.Hosting (1)
Dcp\DcpHostService.cs (1)
248Socket socket = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified);
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
926AddressFamily addressFamily = address.AddressFamily; 943AddressFamily addressFamily = address.AddressFamily;
IIS.Common.TestLib (6)
TestConnections.cs (6)
30: this(port, AddressFamily.InterNetwork) 34public TestConnection(int port, AddressFamily addressFamily) 238public static Socket CreateConnectedLoopbackSocket(int port, AddressFamily addressFamily) 240if (addressFamily != AddressFamily.InterNetwork && addressFamily != AddressFamily.InterNetworkV6) 246var address = addressFamily == AddressFamily.InterNetworkV6
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
161using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1443using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1443using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1443using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
161using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1443using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
InMemory.FunctionalTests (9)
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
48using (Socket listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)) 53var clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
src\Servers\Kestrel\shared\test\TestConnection.cs (7)
18: this(port, AddressFamily.InterNetwork) 22public TestConnection(int port, AddressFamily addressFamily) 56public static Socket CreateConnectedLoopbackSocket(int port) => CreateConnectedLoopbackSocket(port, AddressFamily.InterNetwork); 58public static Socket CreateConnectedLoopbackSocket(int port, AddressFamily addressFamily) 60if (addressFamily != AddressFamily.InterNetwork && addressFamily != AddressFamily.InterNetworkV6) 66var address = addressFamily == AddressFamily.InterNetworkV6
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\JsonTranscodingServerCallContext.cs (2)
87case AddressFamily.InterNetwork: 89case AddressFamily.InterNetworkV6:
Microsoft.AspNetCore.Http.Extensions.Tests (6)
RequestDelegateFactoryTests.cs (4)
334new object[] { (Action<HttpContext, AddressFamily[]>)Store, new[] { "Unix" },new[] { AddressFamily.Unix } }, 385new object[] { (Action<HttpContext, AddressFamily>)Store, "Unix", AddressFamily.Unix },
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (1)
141new object[] { "AddressFamily[]", new[] { "Unix" },new[] { AddressFamily.Unix } },
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (1)
52new object[] { "AddressFamily", "Unix", AddressFamily.Unix },
Microsoft.AspNetCore.HttpOverrides (2)
IPNetwork.cs (2)
105AddressFamily.InterNetwork => prefixLength <= 32, 106AddressFamily.InterNetworkV6 => prefixLength <= 128,
Microsoft.AspNetCore.Rewrite (1)
PatternSegments\IsIPV6Segment.cs (1)
16return context.HttpContext.Connection.RemoteIpAddress.AddressFamily == AddressFamily.InterNetworkV6 ? "on" : "off";
Microsoft.AspNetCore.Server.HttpSys (8)
src\Shared\HttpSys\NativeInterop\SocketAddress.cs (8)
20private SocketAddress(AddressFamily family, int size) 29internal AddressFamily Family { get; } 38if (Family == AddressFamily.InterNetworkV6) 42else if (Family == AddressFamily.InterNetwork) 69if (addressFamily == (ushort)AddressFamily.InterNetwork) 71var v4address = new SocketAddress(AddressFamily.InterNetwork, IPv4AddressSize); 81if (addressFamily == (ushort)AddressFamily.InterNetworkV6) 83var v6address = new SocketAddress(AddressFamily.InterNetworkV6, IPv6AddressSize);
Microsoft.AspNetCore.Server.IIS (8)
src\Shared\HttpSys\NativeInterop\SocketAddress.cs (8)
20private SocketAddress(AddressFamily family, int size) 29internal AddressFamily Family { get; } 38if (Family == AddressFamily.InterNetworkV6) 42else if (Family == AddressFamily.InterNetwork) 69if (addressFamily == (ushort)AddressFamily.InterNetwork) 71var v4address = new SocketAddress(AddressFamily.InterNetwork, IPv4AddressSize); 81if (addressFamily == (ushort)AddressFamily.InterNetworkV6) 83var v6address = new SocketAddress(AddressFamily.InterNetworkV6, IPv6AddressSize);
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Common\TestPortHelper.cs (2)
24using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)) 37using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
Deployers\NginxDeployer.cs (1)
45_portSelector = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\KestrelMetrics.cs (2)
332case AddressFamily.InterNetwork: 335case AddressFamily.InterNetworkV6:
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (9)
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
48using (Socket listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)) 53var clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
src\Servers\Kestrel\shared\test\TestConnection.cs (7)
18: this(port, AddressFamily.InterNetwork) 22public TestConnection(int port, AddressFamily addressFamily) 56public static Socket CreateConnectedLoopbackSocket(int port) => CreateConnectedLoopbackSocket(port, AddressFamily.InterNetwork); 58public static Socket CreateConnectedLoopbackSocket(int port, AddressFamily addressFamily) 60if (addressFamily != AddressFamily.InterNetwork && addressFamily != AddressFamily.InterNetworkV6) 66var address = addressFamily == AddressFamily.InterNetworkV6
Microsoft.AspNetCore.Shared.Tests (8)
src\Shared\HttpSys\NativeInterop\SocketAddress.cs (8)
20private SocketAddress(AddressFamily family, int size) 29internal AddressFamily Family { get; } 38if (Family == AddressFamily.InterNetworkV6) 42else if (Family == AddressFamily.InterNetwork) 69if (addressFamily == (ushort)AddressFamily.InterNetwork) 71var v4address = new SocketAddress(AddressFamily.InterNetwork, IPv4AddressSize); 81if (addressFamily == (ushort)AddressFamily.InterNetworkV6) 83var v6address = new SocketAddress(AddressFamily.InterNetworkV6, IPv6AddressSize);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
ResourceMonitoringOptionsCustomValidator.cs (2)
26|| (ipAddress.AddressFamily != AddressFamily.InterNetwork && ipAddress.AddressFamily != AddressFamily.InterNetworkV6))
Windows\Network\WindowsTcpStateInfo.cs (2)
32.Where(ip => IPAddress.TryParse(ip, out var ipAddress) && ipAddress.AddressFamily == AddressFamily.InterNetwork) 38.Where(ip => IPAddress.TryParse(ip, out var ipAddress) && ipAddress.AddressFamily == AddressFamily.InterNetworkV6)
Microsoft.Extensions.Hosting.Systemd (1)
SystemdNotifier.cs (1)
50using (var socket = new Socket(AddressFamily.Unix, SocketType.Dgram, ProtocolType.Unspecified))
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
Internal\ServiceEndpointImpl.cs (1)
17IPEndPoint ip when ip.Port == 0 && ip.AddressFamily == System.Net.Sockets.AddressFamily.InterNetworkV6 => $"[{ip.Address}]",
netstandard (1)
netstandard.cs (1)
1256[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.AddressFamily))]
Sockets.BindTests (29)
SocketTransportOptionsTests.cs (1)
106var fileHandleSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
src\Servers\Kestrel\shared\test\TestConnection.cs (7)
18: this(port, AddressFamily.InterNetwork) 22public TestConnection(int port, AddressFamily addressFamily) 56public static Socket CreateConnectedLoopbackSocket(int port) => CreateConnectedLoopbackSocket(port, AddressFamily.InterNetwork); 58public static Socket CreateConnectedLoopbackSocket(int port, AddressFamily addressFamily) 60if (addressFamily != AddressFamily.InterNetwork && addressFamily != AddressFamily.InterNetworkV6) 66var address = addressFamily == AddressFamily.InterNetworkV6
src\Servers\Kestrel\shared\test\TransportTestHelpers\IPv6ScopeIdPresentConditionAttribute.cs (1)
27.Any(addressInfo => addressInfo.Address.AddressFamily == AddressFamily.InterNetworkV6 && addressInfo.Address.ScopeId != 0);
src\Servers\Kestrel\shared\test\TransportTestHelpers\IPv6SupportedConditionAttribute.cs (1)
24using (var socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp))
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (19)
538using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)) 573using (var socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp)) 731ThrowsWhenBindingLocalhostToAddressInUse(AddressFamily.InterNetwork); 738ThrowsWhenBindingLocalhostToAddressInUse(AddressFamily.InterNetworkV6); 926private void ThrowsWhenBindingLocalhostToAddressInUse(AddressFamily addressFamily) 933var address = addressFamily == AddressFamily.InterNetwork ? IPAddress.Loopback : IPAddress.IPv6Loopback; 934var otherAddressFamily = addressFamily == AddressFamily.InterNetwork ? AddressFamily.InterNetworkV6 : AddressFamily.InterNetwork; 940using (var socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp)) 975var thisAddressString = $"http://{(addressFamily == AddressFamily.InterNetwork ? "127.0.0.1" : "[::1]")}:{port}"; 976var otherAddressString = $"http://{(addressFamily == AddressFamily.InterNetworkV6 ? "127.0.0.1" : "[::1]")}:{port}"; 1021.Where(ip => ip.AddressFamily == AddressFamily.InterNetwork) 1066.Where(ip => ip.AddressFamily == AddressFamily.InterNetwork) 1076.Where(ip => ip.AddressFamily == AddressFamily.InterNetworkV6) 1124.Where(ip => ip.AddressFamily == AddressFamily.InterNetworkV6) 1160.Where(ip => ip.AddressFamily == AddressFamily.InterNetworkV6) 1195using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
Sockets.FunctionalTests (17)
src\Servers\Kestrel\shared\test\TestConnection.cs (7)
18: this(port, AddressFamily.InterNetwork) 22public TestConnection(int port, AddressFamily addressFamily) 56public static Socket CreateConnectedLoopbackSocket(int port) => CreateConnectedLoopbackSocket(port, AddressFamily.InterNetwork); 58public static Socket CreateConnectedLoopbackSocket(int port, AddressFamily addressFamily) 60if (addressFamily != AddressFamily.InterNetwork && addressFamily != AddressFamily.InterNetworkV6) 66var address = addressFamily == AddressFamily.InterNetworkV6
src\Servers\Kestrel\shared\test\TransportTestHelpers\IPv6ScopeIdPresentConditionAttribute.cs (1)
27.Any(addressInfo => addressInfo.Address.AddressFamily == AddressFamily.InterNetworkV6 && addressInfo.Address.ScopeId != 0);
src\Servers\Kestrel\shared\test\TransportTestHelpers\IPv6SupportedConditionAttribute.cs (1)
24using (var socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp))
src\Servers\Kestrel\test\FunctionalTests\ListenHandleTests.cs (1)
29new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
378var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (4)
116using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)) 568using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)) 615using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)) 709using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (2)
97using (var socket = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified)) 165using (var socket = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified))
System (1)
src\libraries\shims\System\ref\System.cs (1)
746[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.AddressFamily))]
System.IO.Pipes (2)
System\IO\Pipes\NamedPipeClientStream.Unix.cs (1)
38var socket = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified);
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
326var socket = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified);
System.Net (1)
System.Net.cs (1)
37[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.AddressFamily))]
System.Net.Http (5)
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (5)
158if (hostIP.AddressFamily == AddressFamily.InterNetwork) 167Debug.Assert(hostIP.AddressFamily == AddressFamily.InterNetworkV6); 232if (hostIP.AddressFamily == AddressFamily.InterNetwork) 252? await Dns.GetHostAddressesAsync(host, AddressFamily.InterNetwork, cancellationToken).ConfigureAwait(false) 253: Dns.GetHostAddresses(host, AddressFamily.InterNetwork);
System.Net.NameResolution (65)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.HostEntry.cs (1)
37internal static unsafe partial int GetHostEntryForName(string address, AddressFamily family, HostEntry* entry);
src\libraries\Common\src\System\Net\InteropIPAddressExtensions.Unix.cs (1)
18if (ipAddress.AddressFamily == AddressFamily.InterNetworkV6)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (5)
60public static unsafe AddressFamily GetAddressFamily(ReadOnlySpan<byte> buffer) 62AddressFamily family; 73public static unsafe void SetAddressFamily(Span<byte> buffer, AddressFamily family) 77if (family != AddressFamily.Unknown) 178AddressFamily family = GetAddressFamily(buffer);
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.cs (3)
13public static bool OSSupportsIPv6 { get; } = IsSupported(AddressFamily.InterNetworkV6) && !IsIPv6Disabled(); 14public static bool OSSupportsIPv4 { get; } = IsSupported(AddressFamily.InterNetwork); 15public static bool OSSupportsUnixDomainSockets { get; } = IsSupported(AddressFamily.Unix);
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.Unix.cs (2)
13private static unsafe bool IsSupported(AddressFamily af) 17if (af == AddressFamily.Unix && (OperatingSystem.IsTvOS() || OperatingSystem.IsWasi() || (OperatingSystem.IsIOS() && !OperatingSystem.IsMacCatalyst())))
System\Net\Dns.cs (48)
51IPHostEntry ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified); 58GetHostEntry(hostNameOrAddress, AddressFamily.Unspecified); 64/// <param name="family">The address family for which IPs should be retrieved. If <see cref="AddressFamily.Unspecified"/>, retrieve all IPs regardless of address family.</param> 68public static IPHostEntry GetHostEntry(string hostNameOrAddress, AddressFamily family) 94GetHostEntryAsync(hostNameOrAddress, AddressFamily.Unspecified, CancellationToken.None); 106GetHostEntryAsync(hostNameOrAddress, AddressFamily.Unspecified, cancellationToken); 112/// <param name="family">The address family for which IPs should be retrieved. If <see cref="AddressFamily.Unspecified"/>, retrieve all IPs regardless of address family.</param> 118public static Task<IPHostEntry> GetHostEntryAsync(string hostNameOrAddress, AddressFamily family, CancellationToken cancellationToken = default) 166IPHostEntry ipHostEntry = GetHostEntryCore((IPAddress)s, AddressFamily.Unspecified, activity); 188=> GetHostAddresses(hostNameOrAddress, AddressFamily.Unspecified); 194/// <param name="family">The address family for which IPs should be retrieved. If <see cref="AddressFamily.Unspecified"/>, retrieve all IPs regardless of address family.</param> 198public static IPAddress[] GetHostAddresses(string hostNameOrAddress, AddressFamily family) 212addresses = (family == AddressFamily.Unspecified || address.AddressFamily == family) ? new IPAddress[] { address } : Array.Empty<IPAddress>(); 224(Task<IPAddress[]>)GetHostEntryOrAddressesCoreAsync(hostNameOrAddress, justReturnParsedIp: true, throwOnIIPAny: true, justAddresses: true, AddressFamily.Unspecified, CancellationToken.None); 236(Task<IPAddress[]>)GetHostEntryOrAddressesCoreAsync(hostNameOrAddress, justReturnParsedIp: true, throwOnIIPAny: true, justAddresses: true, AddressFamily.Unspecified, cancellationToken); 242/// <param name="family">The address family for which IPs should be retrieved. If <see cref="AddressFamily.Unspecified"/>, retrieve all IPs regardless of address family.</param> 248public static Task<IPAddress[]> GetHostAddressesAsync(string hostNameOrAddress, AddressFamily family, CancellationToken cancellationToken = default) => 273return GetHostEntryCore(hostName, AddressFamily.Unspecified); 278TaskToAsyncResult.Begin(GetHostEntryCoreAsync(hostName, justReturnParsedIp: true, throwOnIIPAny: true, AddressFamily.Unspecified, CancellationToken.None), requestCallback, stateObject); 297IPHostEntry ipHostEntry = GetHostEntryCore(IPAddress.Parse(address), AddressFamily.Unspecified); 310IPHostEntry ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified); 324(address.AddressFamily != AddressFamily.InterNetworkV6 || SocketProtocolSupportPal.OSSupportsIPv6)) 328ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified); 338ipHostEntry = GetHostEntryCore(hostName, AddressFamily.Unspecified); 347TaskToAsyncResult.Begin(GetHostEntryCoreAsync(hostName, justReturnParsedIp: false, throwOnIIPAny: false, AddressFamily.Unspecified, CancellationToken.None), requestCallback, stateObject); 367KeyValuePair<IPAddress, AddressFamily> t => t.Key, 383private static IPHostEntry GetHostEntryCore(string hostName, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) => 386private static IPAddress[] GetHostAddressesCore(string hostName, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) => 389private static object GetHostEntryOrAddressesCore(string hostName, bool justAddresses, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) 427private static IPHostEntry GetHostEntryCore(IPAddress address, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) => 430private static IPAddress[] GetHostAddressesCore(IPAddress address, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) => 434private static object GetHostEntryOrAddressesCore(IPAddress address, bool justAddresses, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) 506private static Task<IPHostEntry> GetHostEntryCoreAsync(string hostName, bool justReturnParsedIp, bool throwOnIIPAny, AddressFamily family, CancellationToken cancellationToken) => 510private static Task GetHostEntryOrAddressesCoreAsync(string hostName, bool justReturnParsedIp, bool throwOnIIPAny, bool justAddresses, AddressFamily family, CancellationToken cancellationToken) 535Task.FromResult(family == AddressFamily.Unspecified || ipAddress.AddressFamily == family ? new[] { ipAddress } : Array.Empty<IPAddress>()) : 539asyncState = family == AddressFamily.Unspecified ? (object)ipAddress : new KeyValuePair<IPAddress, AddressFamily>(ipAddress, family); 573asyncState = family == AddressFamily.Unspecified ? (object)hostName : new KeyValuePair<string, AddressFamily>(hostName, family); 580string h => GetHostAddressesCore(h, AddressFamily.Unspecified, activity), 581KeyValuePair<string, AddressFamily> t => GetHostAddressesCore(t.Key, t.Value, activity), 582IPAddress a => GetHostAddressesCore(a, AddressFamily.Unspecified, activity), 583KeyValuePair<IPAddress, AddressFamily> t => GetHostAddressesCore(t.Key, t.Value, activity), 591string h => GetHostEntryCore(h, AddressFamily.Unspecified, activity), 592KeyValuePair<string, AddressFamily> t => GetHostEntryCore(t.Key, t.Value, activity), 593IPAddress a => GetHostEntryCore(a, AddressFamily.Unspecified, activity), 594KeyValuePair<IPAddress, AddressFamily> t => GetHostEntryCore(t.Key, t.Value, activity), 600private static Task<T>? GetAddrInfoWithTelemetryAsync<T>(string hostName, bool justAddresses, AddressFamily addressFamily, CancellationToken cancellationToken)
System\Net\NameResolutionPal.Unix.cs (3)
23internal static Task? GetAddrInfoAsync(string hostName, bool justAddresses, AddressFamily family, CancellationToken cancellationToken) => 130public static unsafe SocketError TryGetAddrInfo(string name, bool justAddresses, AddressFamily addressFamily, out string? hostName, out string[] aliases, out IPAddress[] addresses, out int nativeErrorCode) 162if (addr.AddressFamily == AddressFamily.InterNetwork)
System\Net\NameResolutionTelemetry.cs (2)
133KeyValuePair<string, AddressFamily> t => t.Key, 135KeyValuePair<IPAddress, AddressFamily> t => t.Key.ToString(),
System.Net.NetworkInformation (10)
System\Net\NetworkInformation\IPAddressUtil.cs (1)
17if (address.AddressFamily == AddressFamily.InterNetworkV6)
System\Net\NetworkInformation\UnicastIPAddressInformation.cs (4)
70internal static IPAddress PrefixLengthToSubnetMask(byte prefixLength, AddressFamily family) 73Debug.Assert((family == AddressFamily.InterNetwork) || (family == AddressFamily.InterNetworkV6)); 75Span<byte> addressBytes = (family == AddressFamily.InterNetwork) ?
System\Net\NetworkInformation\UnixNetworkInterface.cs (3)
37Sockets.AddressFamily family = (networkInterfaceComponent == NetworkInterfaceComponent.IPv4) ? 38Sockets.AddressFamily.InterNetwork : 39Sockets.AddressFamily.InterNetworkV6;
System\Net\NetworkInformation\UnixUnicastIPAddressInformation.cs (2)
109if (Address.AddressFamily != AddressFamily.InterNetwork || _prefixLength == 0) 114return PrefixLengthToSubnetMask((byte)_prefixLength, AddressFamily.InterNetwork);
System.Net.Ping (31)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (5)
13AddressFamily family = SocketAddressPal.GetAddressFamily(socketAddressBuffer); 15if (family == AddressFamily.InterNetworkV6) 24else if (family == AddressFamily.InterNetwork) 36if (address.AddressFamily == AddressFamily.InterNetwork) 70if (endPoint.AddressFamily == AddressFamily.InterNetwork)
src\libraries\Common\src\System\Net\RawSocketPermissions.cs (6)
10private static readonly Lazy<bool> s_canUseRawIPv4Sockets = new Lazy<bool>(() => CheckRawSocketPermissions(AddressFamily.InterNetwork)); 11private static readonly Lazy<bool> s_canUseRawIPv6Sockets = new Lazy<bool>(() => CheckRawSocketPermissions(AddressFamily.InterNetworkV6)); 16public static bool CanUseRawSockets(AddressFamily addressFamily) => 17addressFamily == AddressFamily.InterNetworkV6 ? 21private static bool CheckRawSocketPermissions(AddressFamily addressFamily) 25new Socket(addressFamily, SocketType.Raw, addressFamily == AddressFamily.InterNetwork ? ProtocolType.Icmp : ProtocolType.IcmpV6).Dispose();
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (5)
60public static unsafe AddressFamily GetAddressFamily(ReadOnlySpan<byte> buffer) 62AddressFamily family; 73public static unsafe void SetAddressFamily(Span<byte> buffer, AddressFamily family) 77if (family != AddressFamily.Unknown) 178AddressFamily family = GetAddressFamily(buffer);
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.cs (3)
13public static bool OSSupportsIPv6 { get; } = IsSupported(AddressFamily.InterNetworkV6) && !IsIPv6Disabled(); 14public static bool OSSupportsIPv4 { get; } = IsSupported(AddressFamily.InterNetwork); 15public static bool OSSupportsUnixDomainSockets { get; } = IsSupported(AddressFamily.Unix);
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.Unix.cs (2)
13private static unsafe bool IsSupported(AddressFamily af) 17if (af == AddressFamily.Unix && (OperatingSystem.IsTvOS() || OperatingSystem.IsWasi() || (OperatingSystem.IsIOS() && !OperatingSystem.IsMacCatalyst())))
System\Net\NetworkInformation\Ping.cs (3)
108IPAddress addressSnapshot = address.AddressFamily == AddressFamily.InterNetwork ? 740if (ip.AddressFamily == AddressFamily.InterNetwork && !SocketProtocolSupportPal.OSSupportsIPv4) 744else if ((ip.AddressFamily == AddressFamily.InterNetworkV6 && !SocketProtocolSupportPal.OSSupportsIPv6))
System\Net\NetworkInformation\Ping.PingUtility.cs (2)
20bool isIpv4 = address.AddressFamily == AddressFamily.InterNetwork; 36if (options != null && address.AddressFamily == AddressFamily.InterNetwork)
System\Net\NetworkInformation\Ping.RawSocket.cs (5)
31bool ipv4 = address.AddressFamily == AddressFamily.InterNetwork; 64AddressFamily addrFamily = ep.Address.AddressFamily; 72if (addrFamily == AddressFamily.InterNetworkV6 && !SupportsDualMode) 84if (addrFamily == AddressFamily.InterNetwork) 101bool ipv4 = addrFamily == AddressFamily.InterNetwork;
System.Net.Primitives (46)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.HostEntry.cs (1)
37internal static unsafe partial int GetHostEntryForName(string address, AddressFamily family, HostEntry* entry);
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (5)
13AddressFamily family = SocketAddressPal.GetAddressFamily(socketAddressBuffer); 15if (family == AddressFamily.InterNetworkV6) 24else if (family == AddressFamily.InterNetwork) 36if (address.AddressFamily == AddressFamily.InterNetwork) 70if (endPoint.AddressFamily == AddressFamily.InterNetwork)
src\libraries\Common\src\System\Net\SocketAddress.cs (10)
26public AddressFamily Family 72public static int GetMaximumAddressSize(AddressFamily addressFamily) => addressFamily switch 74AddressFamily.InterNetwork => IPv4AddressSize, 75AddressFamily.InterNetworkV6 => IPv6AddressSize, 76AddressFamily.Unix => UdsAddressSize, 80public SocketAddress(AddressFamily family) : this(family, GetMaximumAddressSize(family)) 84public SocketAddress(AddressFamily family, int size) 97((ipAddress.AddressFamily == AddressFamily.InterNetwork) ? IPv4AddressSize : IPv6AddressSize)) 103if (ipAddress.AddressFamily == AddressFamily.InterNetworkV6) 117Debug.Assert(ipAddress.AddressFamily == AddressFamily.InterNetwork);
src\libraries\Common\src\System\Net\SocketAddressExtensions.cs (2)
14Debug.Assert(socketAddress.Family == AddressFamily.InterNetwork || socketAddress.Family == AddressFamily.InterNetworkV6);
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (5)
60public static unsafe AddressFamily GetAddressFamily(ReadOnlySpan<byte> buffer) 62AddressFamily family; 73public static unsafe void SetAddressFamily(Span<byte> buffer, AddressFamily family) 77if (family != AddressFamily.Unknown) 178AddressFamily family = GetAddressFamily(buffer);
System\Net\DnsEndPoint.cs (7)
13private readonly AddressFamily _family; 15public DnsEndPoint(string host, int port) : this(host, port, AddressFamily.Unspecified) { } 17public DnsEndPoint(string host, int port, AddressFamily addressFamily) 24if (addressFamily != AddressFamily.InterNetwork && 25addressFamily != AddressFamily.InterNetworkV6 && 26addressFamily != AddressFamily.Unspecified) 52public override AddressFamily AddressFamily => _family;
System\Net\EndPoint.cs (1)
22public virtual AddressFamily AddressFamily
System\Net\IPAddress.cs (5)
400public AddressFamily AddressFamily 404return IsIPv4 ? AddressFamily.InterNetwork : AddressFamily.InterNetworkV6; 642if (AddressFamily == AddressFamily.InterNetworkV6) 651if (AddressFamily == AddressFamily.InterNetworkV6)
System\Net\IPEndPoint.cs (5)
28public override AddressFamily AddressFamily => _address.AddressFamily; 148_address.AddressFamily == AddressFamily.InterNetworkV6 ? 158if (socketAddress.Family is not (AddressFamily.InterNetwork or AddressFamily.InterNetworkV6)) 163int minSize = AddressFamily == AddressFamily.InterNetworkV6 ? SocketAddress.IPv6AddressSize : SocketAddress.IPv4AddressSize;
System\Net\IPNetwork.cs (5)
44/// <exception cref="ArgumentOutOfRangeException">The specified <paramref name="prefixLength"/> is smaller than `0` or longer than maximum length of <paramref name="prefixLength"/>'s <see cref="AddressFamily"/>.</exception> 87if (address.AddressFamily != BaseAddress.AddressFamily && (BaseAddress.AddressFamily != AddressFamily.InterNetwork || !address.IsIPv4MappedToIPv6)) 98if (address.AddressFamily == AddressFamily.InterNetwork || address.IsIPv4MappedToIPv6) 248private static int GetMaxPrefixLength(IPAddress baseAddress) => baseAddress.AddressFamily == AddressFamily.InterNetwork ? 32 : 128; 252if (baseAddress.AddressFamily == AddressFamily.InterNetwork)
System.Net.Quic (12)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (5)
13AddressFamily family = SocketAddressPal.GetAddressFamily(socketAddressBuffer); 15if (family == AddressFamily.InterNetworkV6) 24else if (family == AddressFamily.InterNetwork) 36if (address.AddressFamily == AddressFamily.InterNetwork) 70if (endPoint.AddressFamily == AddressFamily.InterNetwork)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (5)
60public static unsafe AddressFamily GetAddressFamily(ReadOnlySpan<byte> buffer) 62AddressFamily family; 73public static unsafe void SetAddressFamily(Span<byte> buffer, AddressFamily family) 77if (family != AddressFamily.Unknown) 178AddressFamily family = GetAddressFamily(buffer);
System\Net\Quic\Internal\MsQuicHelpers.cs (2)
38internal static unsafe IPEndPoint QuicAddrToIPEndPoint(QuicAddr* quicAddress, AddressFamily? addressFamilyOverride = null) 44SocketAddressPal.SetAddressFamily(addressBytes, (AddressFamily)addressFamilyOverride!);
System.Net.Requests (5)
System\Net\FtpControlStream.cs (5)
599string passiveCommand = (ServerAddress.AddressFamily == AddressFamily.InterNetwork || ServerAddress.IsIPv4MappedToIPv6) ? "PASV" : "EPSV"; 604string portCommand = (ServerAddress.AddressFamily == AddressFamily.InterNetwork || ServerAddress.IsIPv4MappedToIPv6) ? "PORT" : "EPRT"; 1126if (ServerAddress.AddressFamily == AddressFamily.InterNetwork || ServerAddress.IsIPv4MappedToIPv6) 1130else if (ServerAddress.AddressFamily == AddressFamily.InterNetworkV6) 1169if (templateSocket.AddressFamily == AddressFamily.InterNetworkV6 && templateSocket.DualMode)
System.Net.Sockets (175)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetSocketType.cs (1)
12internal static partial Error GetSocketType(SafeSocketHandle socket, out AddressFamily addressFamily, out SocketType socketType, out ProtocolType protocolType, [MarshalAs(UnmanagedType.Bool)] out bool isListening);
src\libraries\Common\src\System\Net\InteropIPAddressExtensions.Unix.cs (1)
18if (ipAddress.AddressFamily == AddressFamily.InterNetworkV6)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (5)
13AddressFamily family = SocketAddressPal.GetAddressFamily(socketAddressBuffer); 15if (family == AddressFamily.InterNetworkV6) 24else if (family == AddressFamily.InterNetwork) 36if (address.AddressFamily == AddressFamily.InterNetwork) 70if (endPoint.AddressFamily == AddressFamily.InterNetwork)
src\libraries\Common\src\System\Net\SocketAddressExtensions.cs (2)
14Debug.Assert(socketAddress.Family == AddressFamily.InterNetwork || socketAddress.Family == AddressFamily.InterNetworkV6);
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (5)
60public static unsafe AddressFamily GetAddressFamily(ReadOnlySpan<byte> buffer) 62AddressFamily family; 73public static unsafe void SetAddressFamily(Span<byte> buffer, AddressFamily family) 77if (family != AddressFamily.Unknown) 178AddressFamily family = GetAddressFamily(buffer);
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.cs (3)
13public static bool OSSupportsIPv6 { get; } = IsSupported(AddressFamily.InterNetworkV6) && !IsIPv6Disabled(); 14public static bool OSSupportsIPv4 { get; } = IsSupported(AddressFamily.InterNetwork); 15public static bool OSSupportsUnixDomainSockets { get; } = IsSupported(AddressFamily.Unix);
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.Unix.cs (2)
13private static unsafe bool IsSupported(AddressFamily af) 17if (af == AddressFamily.Unix && (OperatingSystem.IsTvOS() || OperatingSystem.IsWasi() || (OperatingSystem.IsIOS() && !OperatingSystem.IsMacCatalyst())))
src\libraries\Common\src\System\Net\Sockets\ProtocolFamily.cs (32)
16Unknown = AddressFamily.Unknown, 17Unspecified = AddressFamily.Unspecified, 18Unix = AddressFamily.Unix, 19InterNetwork = AddressFamily.InterNetwork, 20ImpLink = AddressFamily.ImpLink, 21Pup = AddressFamily.Pup, 22Chaos = AddressFamily.Chaos, 23NS = AddressFamily.NS, 24Ipx = AddressFamily.Ipx, 25Iso = AddressFamily.Iso, 26Osi = AddressFamily.Osi, 27Ecma = AddressFamily.Ecma, 28DataKit = AddressFamily.DataKit, 29Ccitt = AddressFamily.Ccitt, 30Sna = AddressFamily.Sna, 31DecNet = AddressFamily.DecNet, 32DataLink = AddressFamily.DataLink, 33Lat = AddressFamily.Lat, 34HyperChannel = AddressFamily.HyperChannel, 35AppleTalk = AddressFamily.AppleTalk, 36NetBios = AddressFamily.NetBios, 37VoiceView = AddressFamily.VoiceView, 38FireFox = AddressFamily.FireFox, 39Banyan = AddressFamily.Banyan, 40Atm = AddressFamily.Atm, 41InterNetworkV6 = AddressFamily.InterNetworkV6, 42Cluster = AddressFamily.Cluster, 43Ieee12844 = AddressFamily.Ieee12844, 44Irda = AddressFamily.Irda, 45NetworkDesigners = AddressFamily.NetworkDesigners, 47Packet = AddressFamily.Packet, 48ControllerAreaNetwork = AddressFamily.ControllerAreaNetwork,
System\Net\Sockets\Socket.cs (61)
62private AddressFamily _addressFamily; 73: this(OSSupportsIPv6DualMode ? AddressFamily.InterNetworkV6 : AddressFamily.InterNetwork, socketType, protocolType) 82public Socket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) 122_addressFamily = AddressFamily.Unknown; 157case AddressFamily.InterNetwork: 163case AddressFamily.InterNetworkV6: 171case AddressFamily.Unix: 191case AddressFamily.InterNetwork: 197case AddressFamily.InterNetworkV6: 205case AddressFamily.Unix: 325if (_addressFamily == AddressFamily.InterNetwork || _addressFamily == AddressFamily.InterNetworkV6) 371if (_addressFamily == AddressFamily.InterNetwork || _addressFamily == AddressFamily.InterNetworkV6) 462public AddressFamily AddressFamily 615if (_addressFamily == AddressFamily.InterNetwork) 619else if (_addressFamily == AddressFamily.InterNetworkV6) 635if (_addressFamily == AddressFamily.InterNetwork) 640else if (_addressFamily == AddressFamily.InterNetworkV6) 657if (_addressFamily == AddressFamily.InterNetwork || (_addressFamily == AddressFamily.InterNetworkV6 && DualMode)) 671if (_addressFamily == AddressFamily.InterNetwork || (_addressFamily == AddressFamily.InterNetworkV6 && DualMode)) 690if (_addressFamily == AddressFamily.InterNetwork) 694else if (_addressFamily == AddressFamily.InterNetworkV6) 707if (_addressFamily == AddressFamily.InterNetwork) 712else if (_addressFamily == AddressFamily.InterNetworkV6) 748if (AddressFamily != AddressFamily.InterNetworkV6) 760if (AddressFamily != AddressFamily.InterNetworkV6) 775return AddressFamily == AddressFamily.InterNetworkV6 && DualMode; 779internal bool CanTryAddressFamily(AddressFamily family) 781return (family == _addressFamily) || (family == AddressFamily.InterNetwork && IsDualMode); 858if (dnsEP.AddressFamily != AddressFamily.Unspecified && !CanTryAddressFamily(dnsEP.AddressFamily)) 912if (_addressFamily != AddressFamily.InterNetwork && _addressFamily != AddressFamily.InterNetworkV6) 947if (_addressFamily != AddressFamily.InterNetwork && _addressFamily != AddressFamily.InterNetworkV6) 1822if (endPointSnapshot.AddressFamily == AddressFamily.InterNetwork && IsDualMode) 1864else if (AddressFamily == AddressFamily.InterNetworkV6 && socketAddress.Family == AddressFamily.InterNetwork) 1946if (endPointSnapshot.AddressFamily == AddressFamily.InterNetwork && IsDualMode) 1983else if (endPointSnapshot.AddressFamily == AddressFamily.InterNetworkV6 && socketAddress.Family == AddressFamily.InterNetwork) 2314if (_addressFamily == AddressFamily.InterNetworkV6) 2318else if (_addressFamily == AddressFamily.InterNetwork) 2911if (dnsEP.AddressFamily != AddressFamily.Unspecified && !CanTryAddressFamily(dnsEP.AddressFamily)) 2963bool canUseConnectEx = _socketType == SocketType.Stream && endPointSnapshot.AddressFamily != AddressFamily.Unix; 3004Socket? attemptSocket = dnsEP.AddressFamily != AddressFamily.Unspecified ? new Socket(dnsEP.AddressFamily, socketType, protocolType) : null; 3027partial void WildcardBindForConnectIfNecessary(AddressFamily addressFamily); 3115if (endPointSnapshot.AddressFamily == AddressFamily.InterNetwork && IsDualMode) 3316internal static void GetIPProtocolInformation(AddressFamily addressFamily, SocketAddress socketAddress, out bool isIPv4, out bool isIPv6) 3318bool isIPv4MappedToIPv6 = socketAddress.Family == AddressFamily.InterNetworkV6 && socketAddress.GetIPAddress().IsIPv4MappedToIPv6; 3319isIPv4 = addressFamily == AddressFamily.InterNetwork || isIPv4MappedToIPv6; // DualMode 3320isIPv6 = addressFamily == AddressFamily.InterNetworkV6; 3325AddressFamily fam = endPoint.AddressFamily; 3327fam == AddressFamily.InterNetwork ? SocketAddressPal.IPv4AddressSize : 3328fam == AddressFamily.InterNetworkV6 ? SocketAddressPal.IPv6AddressSize : 3337if (addr.AddressFamily == AddressFamily.InterNetwork && IsDualMode) 3572if (_addressFamily == AddressFamily.InterNetwork) 3582if (_addressFamily == AddressFamily.InterNetworkV6
System\Net\Sockets\Socket.Tasks.cs (1)
418if (remoteEndPoint!.AddressFamily != AddressFamily && AddressFamily == AddressFamily.InterNetworkV6 && IsDualMode)
System\Net\Sockets\Socket.Unix.cs (2)
62SafeSocketHandle handle, out AddressFamily addressFamily, out SocketType socketType, out ProtocolType protocolType, out bool blocking, out bool isListening, out bool isSocket) 96addressFamily = AddressFamily.Unknown;
System\Net\Sockets\SocketAsyncEventArgs.cs (11)
682Debug.Assert(endPoint.AddressFamily == AddressFamily.Unspecified || 683endPoint.AddressFamily == AddressFamily.InterNetwork || 684endPoint.AddressFamily == AddressFamily.InterNetworkV6); 736if (address.AddressFamily == AddressFamily.InterNetworkV6) 738attemptSocket = tempSocketIPv6 ??= (Socket.OSSupportsIPv6 ? new Socket(AddressFamily.InterNetworkV6, socketType, protocolType) : null); 745else if (address.AddressFamily == AddressFamily.InterNetwork) 747attemptSocket = tempSocketIPv4 ??= (Socket.OSSupportsIPv4 ? new Socket(AddressFamily.InterNetwork, socketType, protocolType) : null); 966if (_remoteEndPoint!.AddressFamily == AddressFamily.InterNetworkV6 && _socketAddress!.Family == AddressFamily.InterNetwork) 988if (_remoteEndPoint!.AddressFamily == AddressFamily.InterNetworkV6 && _socketAddress!.Family == AddressFamily.InterNetwork)
System\Net\Sockets\SocketPal.Unix.cs (3)
37if (!SupportsDualModeIPv4PacketInfo && socket.AddressFamily == AddressFamily.InterNetworkV6 && socket.DualMode) 59public static unsafe SocketError CreateSocket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, out SafeSocketHandle socket) 75if (!OperatingSystem.IsWasi() && addressFamily == AddressFamily.InterNetworkV6 && socketType != SocketType.Raw)
System\Net\Sockets\SocketsTelemetry.cs (1)
115activity.SetTag("network.type", ipEndPoint.AddressFamily == AddressFamily.InterNetwork ? "ipv4" : "ipv6");
System\Net\Sockets\TCPClient.cs (11)
17private AddressFamily _family; 26public TcpClient() : this(AddressFamily.Unknown) 31public TcpClient(AddressFamily family) 35if (family is not (AddressFamily.InterNetwork or AddressFamily.InterNetworkV6 or AddressFamily.Unknown)) 57public TcpClient(string hostname, int port) : this(AddressFamily.Unknown) 101_family = _clientSocket?.AddressFamily ?? AddressFamily.Unknown; 374if (_family == AddressFamily.Unknown) 378if (_clientSocket.AddressFamily == AddressFamily.InterNetwork) 380_family = AddressFamily.InterNetwork;
System\Net\Sockets\UDPClient.cs (29)
21private AddressFamily _family = AddressFamily.InterNetwork; 24public UdpClient() : this(AddressFamily.InterNetwork) 29public UdpClient(AddressFamily family) 31if (family != AddressFamily.InterNetwork && family != AddressFamily.InterNetworkV6) 47public UdpClient(int port) : this(port, AddressFamily.InterNetwork) 53public UdpClient(int port, AddressFamily family) 59if (family != AddressFamily.InterNetwork && family != AddressFamily.InterNetworkV6) 67if (_family == AddressFamily.InterNetwork) 197private bool IsAddressFamilyCompatible(AddressFamily family) 205if (family == AddressFamily.InterNetwork) 207return _family == AddressFamily.InterNetworkV6 && _clientSocket.DualMode; 268if (address.AddressFamily == AddressFamily.InterNetworkV6) 368EndPoint tempRemoteEP = _family == AddressFamily.InterNetwork ? 381EndPoint tempRemoteEP = _family == AddressFamily.InterNetwork ? 405if (_family == AddressFamily.InterNetwork) 425if (_family != AddressFamily.InterNetwork) 443if (_family != AddressFamily.InterNetworkV6) 472(_family == AddressFamily.InterNetwork) ? SocketOptionLevel.IP : SocketOptionLevel.IPv6, 489if (_family == AddressFamily.InterNetwork) 512if (_family != AddressFamily.InterNetworkV6) 622_family == AddressFamily.InterNetwork ? IPEndPointStatics.Any : IPEndPointStatics.IPv6Any)); 648_family == AddressFamily.InterNetwork ? IPEndPointStatics.Any : IPEndPointStatics.IPv6Any, cancellationToken)); 714ipv4Socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); 718ipv6Socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Dgram, ProtocolType.Udp); 732if (address.AddressFamily == AddressFamily.InterNetwork && ipv4Socket != null) 840EndPoint tempRemoteEP = _family == AddressFamily.InterNetwork ?
System\Net\Sockets\UnixDomainSocketEndPoint.cs (4)
14private const AddressFamily EndPointAddressFamily = AddressFamily.Unix; 69Debug.Assert(AddressFamily.Unix == SocketAddressPal.GetAddressFamily(socketAddress)); 119public override AddressFamily AddressFamily => EndPointAddressFamily;
System\Net\Sockets\UnixDomainSocketEndPoint.Unix.cs (1)
34new SocketAddress(AddressFamily.Unix, s_nativePathOffset + _encodedPath.Length);
System.ServiceModel.UnixDomainSocket (2)
System\ServiceModel\Channels\SocketConnection.cs (2)
777AddressFamily addressFamily = AddressFamily.Unix;