3 overrides of AddressFamily
System.Net.Primitives (2)
System\Net\DnsEndPoint.cs (1)
52
public override AddressFamily
AddressFamily
=> _family;
System\Net\IPEndPoint.cs (1)
28
public override AddressFamily
AddressFamily
=> _address.AddressFamily;
System.Net.Sockets (1)
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
119
public override AddressFamily
AddressFamily
=> EndPointAddressFamily;
35 references to AddressFamily
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelMetrics.cs (1)
359
tags.Add("network.transport", localEndpoint.
AddressFamily
.ToString());
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
SocketTransportOptions.cs (1)
153
listenSocket = new Socket(endpoint.
AddressFamily
, SocketType.Stream, ProtocolType.Tcp);
System.Net.Primitives (1)
src\libraries\Common\src\System\Net\SocketAddressExtensions.cs (1)
25
if (socketAddress.Family == endPoint?.
AddressFamily
&& endPoint is IPEndPoint ipe)
System.Net.Sockets (32)
src\libraries\Common\src\System\Net\SocketAddressExtensions.cs (1)
25
if (socketAddress.Family == endPoint?.
AddressFamily
&& endPoint is IPEndPoint ipe)
System\Net\Sockets\Socket.cs (28)
331
SocketAddress socketAddress = new SocketAddress(_rightEndPoint.
AddressFamily
, size);
377
SocketAddress socketAddress = new SocketAddress(_rightEndPoint.
AddressFamily
, size);
1749
if (!CanTryAddressFamily(remoteEP.
AddressFamily
))
1751
throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, remoteEP.
AddressFamily
, _addressFamily), nameof(remoteEP));
1820
if (endPointSnapshot.
AddressFamily
== AddressFamily.InterNetwork && IsDualMode)
1850
if (socketAddressLength > 0 && !socketAddress.Equals(remoteEP) || remoteEP.
AddressFamily
!= socketAddress.Family)
1854
if (endPointSnapshot.
AddressFamily
== socketAddress.Family)
1944
if (endPointSnapshot.
AddressFamily
== AddressFamily.InterNetwork && IsDualMode)
1973
if (socketAddressLength > 0 && !socketAddress.Equals(remoteEP) || remoteEP.
AddressFamily
!= socketAddress.Family)
1977
if (endPointSnapshot.
AddressFamily
== socketAddress.Family)
1981
else if (endPointSnapshot.
AddressFamily
== AddressFamily.InterNetworkV6 && socketAddress.Family == AddressFamily.InterNetwork)
2689
if (!CanTryAddressFamily(endPoint.
AddressFamily
))
2691
throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPoint.
AddressFamily
, _addressFamily), nameof(endPoint));
2729
if (!CanTryAddressFamily(endPoint.
AddressFamily
))
2731
throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPoint.
AddressFamily
, _addressFamily), nameof(endPoint));
2932
if (!CanTryAddressFamily(e.RemoteEndPoint.
AddressFamily
))
2941
WildcardBindForConnectIfNecessary(endPointSnapshot.
AddressFamily
);
2962
bool canUseConnectEx = _socketType == SocketType.Stream && endPointSnapshot.
AddressFamily
!= AddressFamily.Unix;
3018
Socket attemptSocket = new Socket(endPointSnapshot.
AddressFamily
, socketType, protocolType);
3105
if (!CanTryAddressFamily(endPointSnapshot.
AddressFamily
))
3107
throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPointSnapshot.
AddressFamily
, _addressFamily), nameof(e));
3114
if (endPointSnapshot.
AddressFamily
== AddressFamily.InterNetwork && IsDualMode)
3154
if (!CanTryAddressFamily(e.RemoteEndPoint.
AddressFamily
))
3156
throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, e.RemoteEndPoint.
AddressFamily
, _addressFamily), nameof(e));
3265
if (e._socketAddress != null && endPointSnapshot is IPEndPoint ipep && e._socketAddress.Family == endPointSnapshot?.
AddressFamily
)
3324
AddressFamily fam = endPoint.
AddressFamily
;
3962
if (!CanTryAddressFamily(remoteEndPoint.
AddressFamily
))
3964
throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, remoteEndPoint.
AddressFamily
, _addressFamily), remoteEndPointArgumentName);
System\Net\Sockets\Socket.Tasks.cs (1)
392
if (remoteEndPoint!.
AddressFamily
!= AddressFamily && AddressFamily == AddressFamily.InterNetworkV6 && IsDualMode)
System\Net\Sockets\SocketAsyncEventArgs.cs (2)
979
if (_remoteEndPoint!.
AddressFamily
== AddressFamily.InterNetworkV6 && _socketAddress!.Family == AddressFamily.InterNetwork)
1001
if (_remoteEndPoint!.
AddressFamily
== AddressFamily.InterNetworkV6 && _socketAddress!.Family == AddressFamily.InterNetwork)