Base:
property
AddressFamily
System.Net.EndPoint.AddressFamily
32 references to AddressFamily
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicConnectionListenerTests.cs (1)
289using var socket = new Socket(endpoint.AddressFamily, SocketType.Dgram, ProtocolType.Udp);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Client\SocketConnectionFactory.cs (1)
56var socket = new Socket(ipEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp)
SocketTransportOptions.cs (1)
143listenSocket = new Socket(ip.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
Internal\ServiceEndpointImpl.cs (1)
17IPEndPoint ip when ip.Port == 0 && ip.AddressFamily == System.Net.Sockets.AddressFamily.InterNetworkV6 => $"[{ip.Address}]",
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
143return new TestConnection(Port, _listenOptions.IPEndPoint.AddressFamily);
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
1211using (var serverSocket = new Socket(endPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp))
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
143return new TestConnection(Port, _listenOptions.IPEndPoint.AddressFamily);
System.Net.Ping (4)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (4)
59SocketAddressPal.SetAddressFamily(destination, endPoint.AddressFamily); 66if (socketAddressBuffer.Length >= SocketAddress.GetMaximumAddressSize(endPoint.AddressFamily) && 67endPoint.AddressFamily == SocketAddressPal.GetAddressFamily(socketAddressBuffer) && 70if (endPoint.AddressFamily == AddressFamily.InterNetwork)
System.Net.Primitives (5)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (4)
59SocketAddressPal.SetAddressFamily(destination, endPoint.AddressFamily); 66if (socketAddressBuffer.Length >= SocketAddress.GetMaximumAddressSize(endPoint.AddressFamily) && 67endPoint.AddressFamily == SocketAddressPal.GetAddressFamily(socketAddressBuffer) && 70if (endPoint.AddressFamily == AddressFamily.InterNetwork)
System\Net\IPEndPoint.cs (1)
163int minSize = AddressFamily == AddressFamily.InterNetworkV6 ? SocketAddress.IPv6AddressSize : SocketAddress.IPv4AddressSize;
System.Net.Quic (5)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (4)
59SocketAddressPal.SetAddressFamily(destination, endPoint.AddressFamily); 66if (socketAddressBuffer.Length >= SocketAddress.GetMaximumAddressSize(endPoint.AddressFamily) && 67endPoint.AddressFamily == SocketAddressPal.GetAddressFamily(socketAddressBuffer) && 70if (endPoint.AddressFamily == AddressFamily.InterNetwork)
System\Net\Quic\QuicListener.cs (1)
164LocalEndPoint = MsQuicHelpers.QuicAddrToIPEndPoint(&address, options.ListenEndPoint.AddressFamily);
System.Net.Sockets (11)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (4)
59SocketAddressPal.SetAddressFamily(destination, endPoint.AddressFamily); 66if (socketAddressBuffer.Length >= SocketAddress.GetMaximumAddressSize(endPoint.AddressFamily) && 67endPoint.AddressFamily == SocketAddressPal.GetAddressFamily(socketAddressBuffer) && 70if (endPoint.AddressFamily == AddressFamily.InterNetwork)
System\Net\Sockets\SocketsTelemetry.cs (1)
115activity.SetTag("network.type", ipEndPoint.AddressFamily == AddressFamily.InterNetwork ? "ipv4" : "ipv6");
System\Net\Sockets\TCPClient.cs (1)
50_family = localEP.AddressFamily; // set before calling CreateSocket
System\Net\Sockets\TCPListener.cs (4)
29_serverSocket = new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp); 45_serverSocket = new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp); 58_serverSocket = new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp); 276_serverSocket ??= new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
System\Net\Sockets\UDPClient.cs (1)
89_family = localEP.AddressFamily;