25 references to AddressFamily
System.Net.Requests (2)
System\Net\FtpControlStream.cs (2)
1168Socket socket = new Socket(templateSocket.AddressFamily, templateSocket.SocketType, templateSocket.ProtocolType); 1169if (templateSocket.AddressFamily == AddressFamily.InterNetworkV6 && templateSocket.DualMode)
System.Net.Sockets (23)
System\Net\Sockets\Socket.cs (10)
748if (AddressFamily != AddressFamily.InterNetworkV6) 760if (AddressFamily != AddressFamily.InterNetworkV6) 775return AddressFamily == AddressFamily.InterNetworkV6 && DualMode; 1738/// <exception cref="ArgumentException">The <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in 1740/// needs to match the <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in SendTo.</exception> 1821SocketAddress socketAddress = new SocketAddress(AddressFamily); 1864else if (AddressFamily == AddressFamily.InterNetworkV6 && socketAddress.Family == AddressFamily.InterNetwork) 1945SocketAddress socketAddress = new SocketAddress(AddressFamily); 2022if (receivedAddress.Size < SocketAddress.GetMaximumAddressSize(AddressFamily)) 3119e._socketAddress ??= new SocketAddress(AddressFamily);
System\Net\Sockets\Socket.Tasks.cs (4)
417saea._socketAddress = new SocketAddress(AddressFamily); 418if (remoteEndPoint!.AddressFamily != AddressFamily && AddressFamily == AddressFamily.InterNetworkV6 && IsDualMode) 439if (receivedAddress.Size < SocketAddress.GetMaximumAddressSize(AddressFamily))
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
203Socket.GetIPProtocolInformation(socket.AddressFamily, _socketAddress!, out isIPv4, out isIPv6);
System\Net\Sockets\SocketPal.Unix.cs (3)
37if (!SupportsDualModeIPv4PacketInfo && socket.AddressFamily == AddressFamily.InterNetworkV6 && socket.DualMode) 1309Socket.GetIPProtocolInformation(socket.AddressFamily, socketAddress, out isIPv4, out isIPv6); 1335Socket.GetIPProtocolInformation(socket.AddressFamily, socketAddress, out isIPv4, out isIPv6);
System\Net\Sockets\TCPClient.cs (5)
101_family = _clientSocket?.AddressFamily ?? AddressFamily.Unknown; 137_family = Client.AddressFamily; 169_family = Client.AddressFamily; 180_family = Client.AddressFamily; 378if (_clientSocket.AddressFamily == AddressFamily.InterNetwork)