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