5 writes to _addressFamily
System.Net.Sockets (5)
System\Net\Sockets\Socket.cs (4)
97
_addressFamily
= addressFamily;
122
_addressFamily
= AddressFamily.Unknown;
134
LoadSocketTypeFromHandle(handle, out
_addressFamily
, out _socketType, out _protocolType, out _willBlockInternal, out _isListening, out bool isSocket);
3791
socket.
_addressFamily
= _addressFamily;
System\Net\Sockets\Socket.Unix.cs (1)
275
_addressFamily
= source._addressFamily;
40 references to _addressFamily
System.Net.Sockets (40)
System\Net\Sockets\Socket.cs (38)
155
switch (
_addressFamily
)
189
switch (
_addressFamily
)
309
Span<byte> buffer = stackalloc byte[SocketAddress.GetMaximumAddressSize(
_addressFamily
)];
325
if (
_addressFamily
== AddressFamily.InterNetwork ||
_addressFamily
== AddressFamily.InterNetworkV6)
357
Span<byte> buffer = stackalloc byte[SocketAddress.GetMaximumAddressSize(
_addressFamily
)];
371
if (
_addressFamily
== AddressFamily.InterNetwork ||
_addressFamily
== AddressFamily.InterNetworkV6)
466
return
_addressFamily
;
615
if (
_addressFamily
== AddressFamily.InterNetwork)
619
else if (
_addressFamily
== AddressFamily.InterNetworkV6)
635
if (
_addressFamily
== AddressFamily.InterNetwork)
640
else if (
_addressFamily
== AddressFamily.InterNetworkV6)
657
if (
_addressFamily
== AddressFamily.InterNetwork || (
_addressFamily
== AddressFamily.InterNetworkV6 && DualMode))
671
if (
_addressFamily
== AddressFamily.InterNetwork || (
_addressFamily
== AddressFamily.InterNetworkV6 && DualMode))
690
if (
_addressFamily
== AddressFamily.InterNetwork)
694
else if (
_addressFamily
== AddressFamily.InterNetworkV6)
707
if (
_addressFamily
== AddressFamily.InterNetwork)
712
else if (
_addressFamily
== AddressFamily.InterNetworkV6)
781
return (family ==
_addressFamily
) || (family == AddressFamily.InterNetwork && IsDualMode);
912
if (
_addressFamily
!= AddressFamily.InterNetwork &&
_addressFamily
!= AddressFamily.InterNetworkV6)
947
if (
_addressFamily
!= AddressFamily.InterNetwork &&
_addressFamily
!= AddressFamily.InterNetworkV6)
1053
SocketAddress socketAddress = new SocketAddress(
_addressFamily
);
1753
throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, remoteEP.AddressFamily,
_addressFamily
), nameof(remoteEP));
2314
if (
_addressFamily
== AddressFamily.InterNetworkV6)
2318
else if (
_addressFamily
== AddressFamily.InterNetwork)
2693
throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPoint.AddressFamily,
_addressFamily
), nameof(endPoint));
2733
throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPoint.AddressFamily,
_addressFamily
), nameof(endPoint));
3108
throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPointSnapshot.AddressFamily,
_addressFamily
), nameof(e));
3157
throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, e.RemoteEndPoint.AddressFamily,
_addressFamily
), nameof(e));
3572
if (
_addressFamily
== AddressFamily.InterNetwork)
3582
if (
_addressFamily
== AddressFamily.InterNetworkV6
3791
socket._addressFamily =
_addressFamily
;
3965
throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, remoteEndPoint.AddressFamily,
_addressFamily
), remoteEndPointArgumentName);
System\Net\Sockets\Socket.Unix.cs (2)
154
SocketError errorCode = SocketPal.CreateSocket(
_addressFamily
, _socketType, _protocolType, out SafeSocketHandle newHandle);
275
_addressFamily = source.
_addressFamily
;