Base:
property
AddressFamily
System.Net.EndPoint.AddressFamily
32 references to AddressFamily
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicConnectionListenerTests.cs (1)
289
using var socket = new Socket(endpoint.
AddressFamily
, SocketType.Dgram, ProtocolType.Udp);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Client\SocketConnectionFactory.cs (1)
56
var socket = new Socket(ipEndPoint.
AddressFamily
, SocketType.Stream, ProtocolType.Tcp)
SocketTransportOptions.cs (1)
143
listenSocket = new Socket(ip.
AddressFamily
, SocketType.Stream, ProtocolType.Tcp);
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
Internal\ServiceEndpointImpl.cs (1)
17
IPEndPoint 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)
143
return new TestConnection(Port, _listenOptions.IPEndPoint.
AddressFamily
);
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
1211
using (var serverSocket = new Socket(endPoint.
AddressFamily
, SocketType.Stream, ProtocolType.Tcp))
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
143
return new TestConnection(Port, _listenOptions.IPEndPoint.
AddressFamily
);
System.Net.Ping (4)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (4)
59
SocketAddressPal.SetAddressFamily(destination, endPoint.
AddressFamily
);
66
if (socketAddressBuffer.Length >= SocketAddress.GetMaximumAddressSize(endPoint.
AddressFamily
) &&
67
endPoint.
AddressFamily
== SocketAddressPal.GetAddressFamily(socketAddressBuffer) &&
70
if (endPoint.
AddressFamily
== AddressFamily.InterNetwork)
System.Net.Primitives (5)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (4)
59
SocketAddressPal.SetAddressFamily(destination, endPoint.
AddressFamily
);
66
if (socketAddressBuffer.Length >= SocketAddress.GetMaximumAddressSize(endPoint.
AddressFamily
) &&
67
endPoint.
AddressFamily
== SocketAddressPal.GetAddressFamily(socketAddressBuffer) &&
70
if (endPoint.
AddressFamily
== AddressFamily.InterNetwork)
System\Net\IPEndPoint.cs (1)
163
int minSize =
AddressFamily
== AddressFamily.InterNetworkV6 ? SocketAddress.IPv6AddressSize : SocketAddress.IPv4AddressSize;
System.Net.Quic (5)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (4)
59
SocketAddressPal.SetAddressFamily(destination, endPoint.
AddressFamily
);
66
if (socketAddressBuffer.Length >= SocketAddress.GetMaximumAddressSize(endPoint.
AddressFamily
) &&
67
endPoint.
AddressFamily
== SocketAddressPal.GetAddressFamily(socketAddressBuffer) &&
70
if (endPoint.
AddressFamily
== AddressFamily.InterNetwork)
System\Net\Quic\QuicListener.cs (1)
164
LocalEndPoint = MsQuicHelpers.QuicAddrToIPEndPoint(&address, options.ListenEndPoint.
AddressFamily
);
System.Net.Sockets (11)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (4)
59
SocketAddressPal.SetAddressFamily(destination, endPoint.
AddressFamily
);
66
if (socketAddressBuffer.Length >= SocketAddress.GetMaximumAddressSize(endPoint.
AddressFamily
) &&
67
endPoint.
AddressFamily
== SocketAddressPal.GetAddressFamily(socketAddressBuffer) &&
70
if (endPoint.
AddressFamily
== AddressFamily.InterNetwork)
System\Net\Sockets\SocketsTelemetry.cs (1)
115
activity.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
;